title: Exclude when parent has class
body: <p>trying to exclude a set of elements from the matched set when it's parent object has a cetain class.</p>
  
  <p>current solution is:</p>
  
  <pre><code>$("#pages li a").not($(this).parent().hasClass('no-script'))
  </code></pre>
  
  <p>but this is not behaving as I would expect, what am I doing wrong?</p>