jquery - How do I keep the child menu open when loaded? -


we using pre-built admin theme called "acme dashboard." when user clicks on dropdown child , child page loads, on next load menu item collapses. how can force menu stay open on next load?

a link theme here: http://wrapbootstrap.com/preview/wb0jlr295

i understand when child theme loaded, parent given class="active" attribute, don't know change in css/js keep dropdown open.

you can use e.stoppropagation()

this prevent close of 'dropdown-menu':

$('.dropdown-menu').on('click', function (e) {     e.stoppropagation(); }) 

if want specific dropdown you'd change jquery selector $('.dropdown-menu') accordingly.

here working example


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -