Title: clear all menu items Post by: jpierce on July 12, 2013, 07:49:35 AM I have a menu that I'm reusing (tied to a menubutton). Each time the window comes up, I add a bunch of menu items (field names from the data that's showing, which may change). The problem is that there is no "clear" or "removeAllItems" method for the menu. It's rather clunky to have to keep my own list of items so I can call findItem and then removeItem.
Title: Re: clear all menu items Post by: jpierce on July 12, 2013, 08:00:23 AM FYI for anyone who is interested, what I wound up doing to avoid having to keep my own list is:
Code: var mm = $('#my_menu'); Would definitely remove a "clear"/"removeAllItems" method! Title: Re: clear all menu items Post by: stollar on June 14, 2019, 11:18:12 AM I couldn't get this to work. Perhaps because I do not have menu-text in my page. Can you include a more complete example here please.
|