title: Jquery ignore elements with "disabled" class
body: <p>I'm using jquery and creating event handlers like this:</p>
  
  <pre><code>$('#some_selector a.add').live('click', function(){...});
  </code></pre>
  
  <p>However, I need to <strong>not execute</strong> handlers when an element has <code>disabled</code> class. Then I wrote the following to achieve this:</p>
  
  <pre><code>$('#some_selector a.add:not(.disabled)').live('click', function(){...});
  </code></pre>
  
  <p>But I'm tired of watching over all the places that I need to add <code>:not(.disabled)</code>, sometimes I forget to add it and so on. Moreover, if I have an anchor element and my handler prevents default action on it, than adding <code>:not(.disabled)</code> will cause browser to open next page instead of doing nothing. </p>
  
  <p>So is there a way to set up automatic disabling on handler execution when an element meets some condition (like having "disabled" class)?</p>