next() not picking up an inner UL with “display: none” in IE7
问题 This is happening with the following markup: <ul id="sideMenu" class="menuFontStyle"> <li class="category">Test</li> <ul class="secondLevel" style="display: none;"> <li></li> </ul> ... In FF and Chrome the inner UL is being picked up but IE7 seems to be skipping to the next li. What could serve as a workaround? This is with a custom accordion script. 回答1: Your ul is not inside the li as you have closed the li before opening the ul . I don't think this is what you want. Then, to access the <ul