title: Save current state after jquery click function
body: <p>I am trying to hide a button after clicking another button but as when the page refreshed, the hidden button shows up again. I wanted to remain it hidden even if I refresh the page and show it only if I click the show button.
  Any help would be much appreciated.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;button type="button" class="showhide"&gt;Show / Hide&lt;/button&gt;
  &lt;button type="button" class="link"&gt;Link&lt;/button&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>$('.showhide').click(function(){
   $('.link').hide();
  });
  </code></pre>