Can someone tell me what's wrong with the following?
$(document).ready(function() {
$('.nav_menu .dropdown').css('display', 'block');
$('ul.nav').toggleclass('dropmenu');
$('.nav_menu > ul').dropmenu({
effect: 'slide',
speed: 250,
timeout: 0,
nbsp: false
});
});
Safari reports that the toggleclass is an anonymoous function, whatever that means!
thanks
I think you are missing the camel case on toggleClass
// v--- case C instead of c
$('ul.nav').toggleClass('dropmenu');
It's a typo: c --> C
it should be:
.toggleClass()
^-------------camelCase, big C
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.