[Solved] jquery toggle not clickable


I would suggest using classes that make more sense, like this…

<div class="menu">
    Menu
    <div class="submenu">Sub-Menu</div>
</div>

Then your jQuery is simply…

$('.menu').click(function(e){
    $(this).find('.submenu').fadeToggle();
});

// If you don't want your sub-menu to trigger the toggle, add this:
$('.submenu').click(function(e){
    e.stopPropagation();
});

3

solved jquery toggle not clickable