Skip to Content
Home › Forums › Older releases › 1.0.x › submenu onFocus event
Hi,
is it possible to call a javascript, when a submenu become visible/focus?
I like to modify the content of a DIV in this submenu with ajax, and I like to load the content, when this submenu become visible. Thanks for your help!
br, Gabor
One more question: if I give id to the submenus, can I check somehow, if the submenu is visible or not?
Thanks for your help!
Nobody?
Not sure if you still need this but you would have to use the API in one way or another. Check the following events:
http://www.smartmenus.org/docs/#beforeshow http://www.smartmenus.org/docs/#show
You could check if any sub menu is visible at any given moment, for example, like this:
var $subMenu = $('#mySubMenu'); // the id of the UL element if ($subMenu.is(':visible')) { // ... }
Thanks for your help 🙂 I will try it!
Username (required)
E-mail (required)
Enter the acronym for JavaScript? (required)
You will be emailed a link to set your password.
Username or Email Address
Password
Remember Me
Lost password?