jquery :not selector not working in next() method
- by Richard
what is the next best thing to use when you want to select the next li item, but not the one that has someClassName. The not selector returns an empty array!
or is this a case off using filter?
<li class="first">pickle</>
<li class="someClassName">tomato</li>
<li>chicken</>
<li>cocosnut</>
var current = $('ul.items li.first');
var next = current.next(':not(li.someClassName)');
thanks, Richard