PDA

View Full Version : java script problem



cristopher
06-27-2012, 10:56 AM
Hi,

I m use dynamic menu in my web software. I want to create active menu or say current menu of sub menu with css.

I just add "current" class in parent menu when click on submenu using java script like :


$('nav > ul > li > ul > li').click(function(event) {

$('nav > ul > li.current > ul').css('display','block');
$('nav > ul > li').addClass('current').siblings().removeClass('current');
//$('nav > ul > li').refreshTip();
//event.preventDefault();

})

I get current class in parent but sub menu href links are stop working.

any one can help me. please

thanks ,
Cristopher