how to prevent blur() running when clicking a link in jQuery?
<p>i have:</p>

<pre><code>&lt;input type="text" /&gt;
</code></pre>

<p>and</p>

<pre><code>$('input').blur(function(){
    alert('stay focused!');
});
</code></pre>

<p>I want to prevent the blur function running when I'm "blurring" by clicking on an anchor element.</p>

<p>I.E. if i tab to another input, click somewhere on the page etc i want the blur to fire, but if i click a link, I don't want it to fire.</p>

<p>Is this easily achievable, or do i need to hack about with delegates and semaphores?</p>

<p>Thanks</p>
