Posted By

joshvermaire on 01/22/11


Tagged

ajax wordpress jquery pagination


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

Japh
jirimelcak
hkamci


WordPress AJAX Pagination using jQuery


 / Published in: JavaScript
 

URL: http://jvcustomdesigns.com

You may need to change the IDs around.

  1. <script type="text/javascript" charset="utf-8">
  2. jQuery(document).ready(function(){
  3.  
  4. jQuery('#postPagination a').live('click', function(e){
  5. e.preventDefault();
  6. var link = jQuery(this).attr('href');
  7. jQuery('#content').html('Loading...');
  8. jQuery('#content').load(link+' #contentInner');
  9.  
  10. });
  11.  
  12. });
  13. </script>

Report this snippet  

You need to login to post a comment.