In jQuery, filter() reduces your result to those elements that fulfill a certain condition.
filter()
This splits the list in two parts. Working with the \"good
Interesting question. I see you are leaning toward what I was going to suggest:
$("some selector").each(function() { if ($(this).is(SOMEFILTER)) { // do something } else { // do something } // continue with things that apply to everything });