2010-02-07, 11:54 AM
I am using dynamic drive Glossy Horizontal Menu:
what I want to accomplish is that when I click one of the links inside the
LI element, the LI's in the UL lose their class of 'current' and the
clicked LI gains the class 'current'.
I also got a syntax, which is
But I can't figure out where to put the code, Please help me solve it.
http://www.dynamicdrive.com/style/csslibrary/item/glossy_horizontal_menu/
what I want to accomplish is that when I click one of the links inside the
LI element, the LI's in the UL lose their class of 'current' and the
clicked LI gains the class 'current'.
I also got a syntax, which is
$("ul.glossymenu li").bind("onclick",function(){
$("ul.glossymenu li").removeClass('current');
$(this).addClass('current');
};
);
But I can't figure out where to put the code, Please help me solve it.