help with toggle
help with toggle
i am having problems with toggle
it works but not the way i wanted
is that a way to make works only on ul click
when i click on li works as well but i only want
on the ul
thanks for the help and sorry for the bad english
$(function(){
$('.b').hide();
$('.a').click(function(){
$(this).find('.b').next().toggle('fast');
});
});
<ul class='a'>test
<li class='b'>a</li>
<li class='b'>b</li>
<li class='b'>c</li>
</ul>