$('.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?
IE does not support the CSS :not selector which this method relies on. Instead try:
$('.divMapTab').not().first().each(...
The ".not().first().each(" solution did not work in my case.
I had to qualify more my ":first" selector repeating the class name ".panneau":
$(".panneau:not(.panneau:first)").hide();
It's a behavior that won't be fixed by jQuery.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With