The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Hide/Show Div's Reply To: Hide/Show Div's


I have found the not() doesn’t work properly in IE8 properly. Since you are using not() to select the inactive div’s, I believe that could be your problem.

There are a bunch of different ways you can achieve what you are trying to do without using not()… although, not() would be my first choice if not for IE8. One way would be to add an additional class to all of the divs for the sole purpose of selecting them for the fade. Something like inactiveDiv. And then remove that class from the active div before fading. Since the active div no longer has that class, it won’t fade… only the others will. Then when you move on to the next, restore that class name to the div that you had removed it from.

Make sense?