Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Mobile Navigation Dropdown Re: Mobile Navigation Dropdown

#114613
Senff
Participant

For some reason, the script is not being executed. Try wrapping it in a document.ready AND move it as low as you can in the markup (try it right before the </body> tag).

jQuery(document).ready(function() {
jQuery(‘ul.menu > li > a’).click(function(e) {

jQuery(‘ul.sub-menu’).slideUp(‘normal’);

if(jQuery(this).next(‘ul.sub-menu’).is(‘:hidden’) == true) {
jQuery(this).next(‘ul.sub-menu’).slideDown(‘normal’);
}

e.preventDefault();
});