jQuery :not(:first) not working in IE8, but does in FF and Chrome

jquery-selectors

Solution

IE does not support the CSS :not selector which this method relies on. Instead try:

$('.divMapTab').not().first().each(...

Problem

$('.divMapTab:not(:first)').each(... I've got 2 divs on my page, both with class of divMapTab. In FF and Chrome, the code above only selects the 2nd instance of divMapTab, but in IE it selects them both. Am I missing a subtlety in how the :not or :first keywords work?

Original source