$("[title]").not("#boo [title]").each()
and as a side note, when you use id to get an element, it is faster if you don't prefix the element tag. For example, use #boo instead of div#boo . demo - try looking at the firebug console for time comparisons.
source share