like in the title, I need to have menu tabs closed by default on load. The code is:
$('#cssmenu li.active').addClass('open').children('ul').show();
When you change "show" to "hide", it works, but only after the second click... Any ideas?
答案 0 :(得分:0)
像这样:
$('#cssmenu li.active').removeClass('open').children('ul').hide();