JQuery Accordion Parent Link
I do want to be clickable to its link the parent menu after it show the sub menu,how can it this be done below are my codes My HTML
Don't return false when the first condition is true:
function initMenu() {
$('#menu ul').hide();
$('#menu ul:first').show();
$('#menu li a').click(function () {
var checkElement = $(this).next();
if ((checkElement.is('ul')) && (checkElement.is(':visible'))) {
return true;
}
if ((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
$('#menu ul:visible').slideUp('normal');
checkElement.slideDown('normal');
return false;
}
});
}
You may like these posts
Post a Comment for "JQuery Accordion Parent Link"