I have the following:
<div class="io-section-header">
<ul>
<li class="advanced">Eat</li>
<li class="advanced">Sleep</li>
<li class="advanced">Be merry</li>
</ul>
</div>
I have the jQuery (which is tied to a click() handler:
$('io-section-header').each(function() {
$("li").siblings(".advanced").toggle('fast',function(){});
});
Why aren’t the list items toggling?
I dont think you actually need the
each()statement for what you are trying to do. This should work fine.here is a fiddle http://jsfiddle.net/8kpcn/1/
In fact this will do the same thing as well
http://jsfiddle.net/8kpcn/2/