jQuery:
$( '#mainNavSidebar .subListTrigger' ).click( function(){
$( this ).next( '.subList' ).toggle();
});
HTML:
<style>.subList{ display: none; }</style>
<ul id="mainNavSidebar">
<li class="subListTrigger">
<a>About Us</a>
</li>
<ul class="subList">
<li><a>Welcome</a></li>
<li><a>Mission</a></li>
</ul>
</ul>
So I'm stuck using an older version of jQuery which is why I'm using click() instead of on(). But this is working fine in Chrome and Firefox, but it does nothing in IE. If I put an alert in there it will do that, so I think the problem is with either the next() or the toggle(). Any ideas?
Thanks!