[jQuery] [Pagination Plugin] How to use it?
Hi, I am trying to use Jquery pagination plugin.
I have read documentation but things are still not clear to me. Can someone please help me?
What exactly we need to do in callback function? Will this pagination plugin work with Ajax call?
<pre>$("#News-Pagination").pagination(122, {
items_per_page:20,
callback:loadContents
});
</pre><pre>callback
A callback function that is called when a user clicks on the link. the The
function receives two parameters:<span style="color: rgb(255, 0, 0);"> the new page id and the pagination </span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"> container (a DOM element). </span>If the callback returns false, the event
propagation is stopped. Default value: ``function(){return false;}``
Thanks
Raghu
</pre>