Reputation: 19
I have a listing according to the categories. I am loading the data listing using jquery post. On the ajax loaded data I am looking for a pagination using ajax again. Please suggest me with the best solutions.
What i have thought of is to make three with different ids and load when clicked on categories then again call a function onclick of the pagination nos to replace contents of ajaxloaded div like..
<div id='data'>
<div id='ajaxloaded'>
data listing goes herez
</div>
<div id='paginate'> 1 2 3..</div>
</div>
Is this the way to go for it ? anyone got a better idea please suggest me some I am using PHP and Mysql.
thanks in advance
Upvotes: 1
Views: 4821
Reputation: 10530
Have you tried any of these? http://www.jquery4u.com/plugins/10-jquery-pagination-plugins/
Upvotes: 1
Reputation: 3783
You can use DataTables, it's a jQuery library allowing pagination.
Look at this example
Upvotes: 1