Is there a way to detect mouse press in jQuery?
<p>I want to add a class to a link when it is clicked, but I can't use:</p>

<pre><code>$('a.someLink').click(function() {
   // code
});
</code></pre>

<p>since click seems to detect when a user clicks and lets go of the mouse clicker on an element. I need to add the class as soon as the user has clicked on the element, even before he lets ago of the mouse clicker and after he lets go I need the class to be removed.</p>

<p>Basically I'm trying to mimic css's active state on links:</p>

<pre><code>a:active
</code></pre>

<p>How can this be done?</p>
