Skip to Content
Home › Forums › Older releases › 0.9.x › method ItemActivate
Hello, I am not clear how to use the method ItemActivate.
what should be the value ItemActivate?
myItem be defined as a class A?
$ ('# main-menu'). SmartMenus ('ItemActivate', $ ('a # myItem'));
< li id="menu-item-8" >< a class="myItem" href= " # " >About</ a >
If you already have an id on the parent LI:
<li id="menu-item-8"><a href="#">About</a>
you can use the following JS:
$('#main-menu').smartmenus('itemActivate', $('#menu-item-8 > a'));
Otherwise, you could also use the following (set an id to the A element instead of class):
<li><a href="#" id="myItem">About</a>
and the JS:
Let me know if you still have any troubles.
PS: All methods are case sensitive, so be careful with that too.
Thank you very much, I’ve tested and works
You will be emailed a link to set your password.
Username or Email Address
You will receive emails only on new version releases or really important news. Your email will not be shared with anyone. We hate spam too!