Im just trying to creating a slashdot menu for my site and this is what I got so far:
$(document).ready(function () {
$('ul').each(function(){
$(this).click(function(){
$('ul').closest('li').slideToggle(300);
});
});
});
This just doesn't work at all as you can see here
My HTML is:
<ul>
Click 1
<li>1.1</li>
</ul>
<ul>
Click 2
<li>2.1</li>
</ul>
Hope someone can help me get this working.