views:

46

answers:

1

$('.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?

+2  A: 

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

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