I have almost completed designing a website for my friend, which can be viewed at www.soundpie.org. However, he has requested to change the drop-down sections in the navigation menu so that they stay open on click instead of hover. I believe incorporating jQuery into the site is the solution. I attempted to follow a guide from this post (check link below), but I am having trouble configuring the jQuery.
Changing hover to click on menu
Any advice or suggestions on this matter would be greatly appreciated.
Below is the current HTML:
<body>
<span id="dummy"></span>
<div id="topnav" class="tnav">
<ul class="tnav-lvl1-menu-tbar">
<div class="tnav-lvl1-menu-body tnav-bg4">
<div id="logo1">
<li class="tnav-style-1">
<div class="grow img"> <a href="javascript:void(0);"><img src="images/icons/ai1.png" alt="flute"><span>HEAR</span></a></div>
<div class="tnav-play animated fadeInDown">
<div id="services" class="lightstyle">
<div class="mustard-bg">
<div class="tnav-showbox">
<div id="hear-content">
<h2>Hear:</h2>
<hr>
<div id="video-left">
<img src="images/als/ail1.jpg">
</div>
And here is the CSS:
.tnav-lvl1-menu li:hover .tnav-play, .tnav-lvl1-menu li:hover .tnav-play-2, .tnav- lvl1-menu li:hover .tnav-play-3,
.tnav-lvl1-menu-tbar li:hover .tnav-play, .tnav-lvl1-menu-tbar li:hover .tnav-play-2, .tnav-lvl1-menu-tbar li:hover .tnav-play-3,
.tnav-lvl1-menu li:hover .tnav-play-bottom, .tnav-lvl1-menu li:hover .tnav-play-2-bottom, .tnav-lvl1-menu li:hover .tnav-play-3-bottom,
.tnav-lvl1-menu-tbar li:hover .tnav-play-bottom, .tnav-lvl1-menu-tbar li:hover .tnav-play-2-bottom, .tnav-lvl1-menu-tbar li:hover .tnav-play-3-bottom {
display:block;