jquery, is it possible to store information in a variable, rather than an input field?
<p>I want to store the current page number in a jquery variable, but I am not sure if it is possible, so I am storing it in an input field. Am I doing it the most efficient way?</p>

<pre><code>&lt;input type='hidden' id='current_page' /&gt; 

$('#current_page').val(0);  
</code></pre>

<p>if page is changed,</p>

<pre><code>function (newpage){
$('#current_page').val(page_num);
}
</code></pre>
