title: Disable Link Onclick
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4975042/reddit-style-voting-button">Reddit-Style Voting Button</a>  </p>
  </blockquote>
  
  
  
  <p>So I have been working on this site, an I wanted to create a stackoverflow/reddit style voting system into my site. I want to disable a link when user clicks on it so they won't be able to vote twice. Here is the code I have:</p>
  
  <pre><code>&lt;a href="#" title="upvote" class="arrows" onclick ="submitVote(&lt;?php echo
  $lulz['link_id']; ?&gt;, 1);
  return false;"&gt;&amp;uarr;&lt;/a&gt;
  </code></pre>
  
  <p>I need to keep the current on-click function so I can add in the vote. I it is possible to add another to disable it (with cookies).</p>