Expand list when mouse click on list

You can use jQuery and apply a click event to the top-level li.
Something like:

$('.top-level').on ('click', function (){
 $('.top-level > li').css ('display', 'block');

I am not entirely sure of what your HTML looks like, but this is the general idea.
You will also need to come up with a function to close the menu.
There are plenty of resources on the internet for examples and tutorials on writing jQuery.

Browse More Popular Posts

Leave a Comment