I want to write a selector that targets the first element that doesn't have a specific class.
<ul>
<li class="someClass">item 1</li>
<li>item 2</li> <-- I want to select this
<li class="someClass">item 3</li>
<li>item 4</li>
</ul>
I know how to select all elements that doesn't have "someClass":
$('li not:(.someClass)').dostuff();
But I don't know how to only select the first element that doesn't have "someClass".
Anyone knows how to do this?