title: How do I use session variables with jQuery?
body: <p>I have a button on one page another button on a different page. This second button has the text in it "0 items selected". When the first button is clicked I want to increase the number in the second button by one.</p>
  
  <p>Seeing it is transferring data over different pages I didn't manage to do it the standard way.</p>
  
  <p>Please do not suggest PHP, I am unable to use it.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var yetVisited = localStorage[0];
  
  if ($('.#CallToActionCustomise').click()){
   localStorage++;
  }
  $('.#CallToActionCustomise').click(function(){
   $(".Main_MenuButtonReview").append(localStorage);
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button class="Main_MenuButtonReview"&gt;0 items selected &lt;i class="fa fa-caret-down"&gt;&lt;/i&gt;&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>