Pagination with form instead of links

Is there a function like paginate_links or something that can be done with it in order to format the page numbers as form inputs / buttons instead of links?

Right now the markup for pagination looks like this:

<div class="pages" id="paginate"> <span class="page-numbers current">1</span> <a class="page-numbers" href="http://example.com/page/2/'>2</a> <a class="page-numbers" href="http://example.com/page/3/'>3</a> <a class="next page-numbers" href="http://example.com/page/2/">&raquo;</a> </div> 

I'd rather have something like this:

<form action="http://example.com/">     <input type="submit" name="paged" value="1" disabled />     <input type="submit" name="paged" value="2" />     <input type="submit" name="paged" value="3" /> </form> 

(I think it's more semantic and reduces the number of not-so-relevant hrefs, with potential SEO benefits)

Or, more or less the same, but with the option to have a content different from the value:

<form action="http://example.com/">     <button type="submit" name="paged" value="1" disabled>1</button>     <button type="submit" name="paged" value="2">2</button>     <button type="submit" name="paged" value="3">3</button>     <button type="submit" name="paged" value="2">ยป</button> </form> 

Could this be easily done or where should I start looking?

Replay

Category: forms Time: 2016-07-31 Views: 3

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.246 (s). 12 q(s)