How do I set jquery pagination show page 1 on load -


i'd set page 1 show first when load page using pagination link

jquery pagination

reading documentation: https://github.com/gbirke/jquery_pagination#readme

it seems plugin has option named :

current_page :- page selected when pagination initialized. default: 0

so think like:

$("#news-pagination").pagination(122, {         items_per_page:20,         callback:handlepaginationclick,         current_page : 1 }); 

hth :)


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -