WordPress AJAX Pagination using jQuery


/ Published in: JavaScript
Save to your folder(s)

You may need to change the IDs around.


Copy this code and paste it in your HTML
  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>

URL: http://jvcustomdesigns.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.