How to remember a variable in JQuery for next AJAX load?
<p>I load data set by Jquery AJAX as</p>

<pre><code>$(function(){
 $('#next').submit(function(e){
 e.preventDefault();
 var form = $(this);
 var page = form.attr("action")
  $.ajax({
   type: 'POST',
   url: page, 
   success: function(html){
   $("#results").append(html);
   }
  });
 });
});
</code></pre>

<p>The form is a single button with action="load.php?page=2".</p>

<p>When pressing submit button of the form, it will load data from <code>load.php?page=2</code>. How can I remember this action to load data from <code>load.php?page=3</code> upon next click? and reading subsequent pages?</p>

<p>In fact, I want to introduce a new variable for the page number will be increased upon every click.</p>
