Please call 'disable' method to disable a menubutton component.
$('#mb').menubutton('disable');
this works for the main menubutton (the <a> element) but not for the menu(the <div> element)
EDIT: I found that 'menu' has the method 'disableItem' , but I can't use the method because the menus get attached to the <body> and I can't use the jquery $ selector to get the correct menu.
Do I have to give every menu an ID so that I can know which menu is which, or is there a way for me to create the menus without attaching them to the <body>?