jQuery not selecting div class
- by Cortopasta
Trying to make a simple toggle menu, and I can't seem to hide/show the sub menu using this bit of jQuery:
$(".topic news").mouseup(function(){
$(".feed groups").hide("fast", function(){
$(".feed messages").hide("fast");
$("ul.feed news").toggle("fast");
});
});
Here is the corresponding HTML:
<div class="topic news">
<span>News Feed</span>
</div>
<ul class="feed news">
<li>News item #1</li>
<li>News item #1</li>
<li>News item #1</li>
<li>News item #1</li>
<li>News item #1</li>
</ul>
Any ideas?