title: How to bind an Event Handler with "delegate()" using an attribute filter?
body: <p>Want to attach an Event Handler/Listener to some links using the "delegate()" method, but I want to attach it only to links with certain classes:</p>
  
  <p>The links are inside a larger block called "slider", so what I use to bind the Event Listener to all the links is:</p>
  
  <p>$("#slider").delegate("a", "click", myFunction);</p>
  
  <p>But I want to bind the #slider method to only the links that have a class that does NOT contain "nivo-control".</p>
  
  <pre><code>$("#slider").delegate("a[class!='nivo-control']", "click", myFunction);
  </code></pre>
  
  <p>it doesn't work, not even for the links that ONLY have a class of "nivo-control".</p>
  
  <pre><code>$("#slider a").delegate("a[class!='nivo-control']", "click", myFunction);
  </code></pre>
  
  <p>doesn't work either.</p>
  
  <p>I could also select the links by checking whether they do NOT have a "rel" attribute, but this doesn't work either:</p>
  
  <pre><code>$("#slider").delegate("a[rel!='']", "click", function() { alert("hey");});
  </code></pre>