Skip to content Skip to sidebar Skip to footer

Ajax Pagination Adding Data Insted Of Replacing Data

I Have a working PHP Based Pagination onto which i am adding ajax to improve page load. my problem is ajax is adding whole navigation page(to which navigation is made through pagin

Solution 1:

Generally .load() should replace the contents of div#temp. But you can solve this by: following:

$('div#temp').empty();

$('div#temp').load($(this).attr('href'));

or

 $('div#temp').load($(this).attr('href') + '#temp');

Post a Comment for "Ajax Pagination Adding Data Insted Of Replacing Data"