title: Is there a way to disable href link on click for n days use cookies in JavaScript
body: <p>Is there a way to use cookies to disable a link after click for 5 days and be active again until click then disable for 5 days ...etc</p>
  
  <p>I have use this for disabling but refreshing page link is active again. I was just thinking using $_user cookie I might be able doing this my problem is getting things together. Google a lot on how to use cookies but can't seem to get the logic of using it to get my results</p>
  
  <pre><code>&lt;a href="mylink.html" class="disabled"&gt;Download&lt;/a&gt;
  &lt;a href="anotherlink.html" class="disabled"&gt;Delete&lt;/a&gt;
  
  &lt;script&gt;
      jQuery(document).ready(function($) {
          $('a.disabled').on('click', function(e) {
              e.preventDefault();
          });
      });
  &lt;/script&gt;
  </code></pre>