¡@

Home 

2014/10/16 ¤W¤È 12:09:43

jquery Programming Glossary: ul.submenu

Submenu stay open on menu click

http://stackoverflow.com/questions/8300261/submenu-stay-open-on-menu-click

0 function jsddm_open jsddm_close ddmenuitem this .find 'ul.submenu' .css 'display' 'block' function jsddm_close if ddmenuitem ddmenuitem.css.. return this.href document.location.href .addClass 'active' ul.submenu li a .each function var currentURL document.location.href var.. .attr href if currentURL.indexOf thisURL 1 this .parent ul.submenu .css 'display' 'block' And the css #topnav ul list style none..

Submenu stay open on menu click

http://stackoverflow.com/questions/8300261/submenu-stay-open-on-menu-click

Werken bij a li ul li ul div The javascript var ddmenuitem 0 function jsddm_open jsddm_close ddmenuitem this .find 'ul.submenu' .css 'display' 'block' function jsddm_close if ddmenuitem ddmenuitem.css 'display' 'none' document .ready function '#topnav.. 'active' this .addClass 'active' 'a' .filter function return this.href document.location.href .addClass 'active' ul.submenu li a .each function var currentURL document.location.href var thisURL this .attr href if currentURL.indexOf thisURL 1 this.. var currentURL document.location.href var thisURL this .attr href if currentURL.indexOf thisURL 1 this .parent ul.submenu .css 'display' 'block' And the css #topnav ul list style none padding 0 margin 0 #topnav ul li float left margin 0 padding..