Joined November 2013
·

Atlanta Test

Atlanta
·
·

Thanks for the useful code. It's great that its in jQuery, and works in IE10 and IE11 touch. Do you have a version that works with menus that have several top-level headings with dropdowns? Perhaps using the jQuery ".this" keyword, and CSS classes would work?
--------- Follow Up ----------- I'm new to jQuery, so see if this will work reliably, or maybe there's a better way?

$(document).ready( function(){

$('.submenu').click( function(event){
    event.stopPropagation();
    $(".drop").hide();
    $(this).children("ul").toggle();
});

$(document).click( function(){        
    $('.drop').hide();
});

});

Achievements
1 Karma
0 Total ProTip Views