select div with class unless it has ancestor of another class
<p>Asked this question ten minutes ago, but realized that I used the term parent instead of ancestor. I'm looking for something that refers to a class that has a particular ancestor.</p>

<p>How can I select all inputs that do not have an parent of a particular class?</p>

<p>Here I just want to get the inputs that do not have a parent with the class not-parent</p>

<pre><code>$(document).ready(function() {

    $("div:not(.not-ancestor) &gt; input[type='text']").css('color', '#FF1200');
});​
</code></pre>

<p><a href="http://jsfiddle.net/MFtv3/3/" rel="nofollow">http://jsfiddle.net/MFtv3/3/</a></p>

<p>Thanks!</p>
