Re: method ItemActivate

Home Forums Older releases 0.9.x method ItemActivate Re: method ItemActivate

#1458
admin
Keymaster

Hi,

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:

$('#main-menu').smartmenus('itemActivate', $('#myItem'));

Let me know if you still have any troubles.

Cheers!

PS: All methods are case sensitive, so be careful with that too.

Register

You will be emailed a link to set your password.

Login

Lost password?