title: Prevent onclick action with jQuery
body: <p>there are some links with onclick event actions </p>
  
  <pre><code>&lt;a href="#" onclick="alert('panic!')"&gt;Let's panic&lt;/a&gt;
  &lt;a href="#" onclick="alert('panic!')" disabled="disabled"&gt;I can't panic no more&lt;/a&gt;
  </code></pre>
  
  <p>I need prevent event actons execution on links with <strong>disabled</strong> attribute without removing onclick actions.</p>
  
  <pre><code>$('a[disabled]').click(function(e){
    e.stopPropagation();
    return false;
  });
  </code></pre>
  
  <p>This code doesn't helps me.</p>
  
  <p><strong>update</strong> Even this code doesn't work</p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;&lt;script type='text/javascript' src='jquery-1.3.2.js'&gt;&lt;/script&gt;&lt;/head&gt;
  &lt;body&gt;
  &lt;a href='#' onclick="alert('HA-ha!')" disabled="disabled" class="disabled"&gt;TEST&lt;/a&gt;
  &lt;script type="text/javascript"&gt;
      $('a[disabled], a.disabled').click(function(e){
          console.log('override?');
          e.stopImmediatePropagation();           
              e.preventDefault();
          e.stopPropagation();
          return false;       
      });
  &lt;/script&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>