jQuery
$(document).ready(function(){
$('.cats_showall').click(function(){
$('.cats_dropdown li').slideToggle();
});
});
CSS
.cats_dropdown li{
display: none;
}
.cats_dropdown > li:first-child{
display: list-item;
}
HTML
<ul class="cats_dropdown">
<li>Category 1 - <a href="#" class="cats_showall">Show all</a></li>
<li>Category 2</li>
<li>Category 3</li>
<li>Category 4</li>
</ul>
But it doesn't work. Please help :)