title: Why won't this variable update?
body: <p>In the document.ready() I have: </p>
  
  <pre><code>$('#menu_indicator').append('&lt;p&gt;' + currPage + ' / ' + pageLimit + '&lt;/p&gt;');
  </code></pre>
  
  <p>pageLimit is always one number that does not change throughout the whole code.
  I have it so that when a user clicks a button, it changes currPage to a different number.
  (this part is not in document.ready();)</p>
  
  <p>Why doesn't it update it in the indicator?
  Any ideas to fix it?</p>
  
  <p>Thanks</p>