title: jQuery - How to use e.preventDefault(); in a JavaScript function
body: <p>I have this JavaScript function :</p>
  
  <pre><code>function putVote(trackid, vote) {
  }
  </code></pre>
  
  <p>and I call this function trought :</p>
  
  <pre><code>&lt;a href="#" onClick="putVote('data1', 'data2')"&gt;Link&lt;/a&gt;
  </code></pre>
  
  <p>I would like to use <code>e.preventDefault();</code> on <code>putVote()</code>, but I think I'm wrong in some ways. How can I do it?</p>
  
  <p>Cheers</p>