我希望单击LI标记后UL标记保持打开状态,因为li标记也具有指向另一页的链接。我确实尝试过使用stoppropgation,返回false或eventdefault()
,但是所有这些都起作用,但是LI标签下的链接没有打开。我希望li标签下的链接先打开,然后充当“ Return False或“ STOPPROPGATION”
<nav class =menu>
<ul class="menu1" >
<li><a href="index.cfm" class="active"><i class="fa fa-home"></i>Dashboard</a></li>
<li> <a href="javascript:void(0)">Budget_Modal <i class="fa fa-caret-down"></i></a>
<ul>
<li><a href="javascript:void(0)" >Management <i class="fa fa-caret-down"></i></a>
<ul class= "submenu">
<li><a href="zmgmt.cfm" >Mr.Tammy</a></li>
<li><a href="zmgmt1.cfm" >Awards</a></li>
<li><a href="zmgmt2.cfm">Projects</a></li>
<li><a href="zmgmt3.cfm">Tasks</a></li>
<li><a href="zmgmt4.cfm">Sites</a></li>
<li><a href="zmgmt5.cfm">Subtasks</a></li>
</ul></li></ul></li
</ul>
</nav>