I'm got some yuimenu-based popup menus working, and, generally speaking, all is well. However, I've found that I need to get my hands on a menu object so I can do things to it after it's been created (e.g., hide an exposed menu when something else happens on the page). I can find the div of class yuimenu, but I need the object so I can (presumably) do a cfg.setProperty('visibility', 'hidden')
or something similar on it.
So: How can I get this object? I've tried YAHOO.widget.Menu(theDivID)
, but that went down in flames. Thanks! (ps: If I'm going about this all wrong, please let me know!)