title: jQuery exclude elements with certain class in selector
body: <p>I want to setup a click event trigger in jQuery for certain anchor tags.</p>
  
  <p>I want to open certain links in a new tab while ignoring ones with a certain class (before you ask I cannot put classes on the links I am trying to catch as they come from a CMS).</p>
  
  <p>I want to exclude links with class <strong><code>"button"</code></strong> OR <strong><code>"generic_link"</code></strong></p>
  
  <p>I have tried:</p>
  
  <pre><code>$(".content_box a[class!=button]").click(function (e) {
      e.preventDefault();     
      window.open($(this).attr('href'));
  });
  </code></pre>
  
  <p>But that doesn't seem to work, also how do I do an OR statement to include <strong><code>"generic_link"</code></strong> in the exclusion?</p>