SHARE
TWEET

de4th

a guest Nov 3rd, 2009 1,635 Never
  1. <div id="next">Next</div>
  2. <input type="hidden" id="currentPage" value="1">
  3.  
  4. $("#next").click(function(){
  5.                
  6.   Display_Load();
  7.   var cur = $("#currentPage").val();
  8.   var pageNum = Number(cur) + 1;
  9.   $("#currentPage").val(pageNum);
  10.   $("#content").load("pagination_data.php?page=" + pageNum, Hide_Load());              
  11.  
  12. });
RAW Paste Data
Top