I am using jQuery UI's selectmenu to style a <select> element on a page.
By default, it renders a <span> with class .ui-selectmenu-button which toggles the menu.
However, I would like to hide that and make the menu appear/disappear when clicking on a different element on the page.
How would I do this, please?
Note: the currently selected value of the menu does not need to be visible until the menu appears, so that is not a concern.
openmethod? See More: api.jqueryui.com/selectmenu/#method-open