Looking at the demo here and here , it seems that selectmenu works by adding
<span class="ui-selectmenu-button"> or (probably different selectmenu versions?) <a ... class="ui-selectmenu ...">
after the initial selection containing the artificial choice.
You can try to access this with
$('#ddlReport').next('.ui-selectmenu .ui-selectmenu-button').hide();
Although it seems like it can use other classes (instead of -button
). This is also a kind of hacky workaround, and I'm sure the plugin contains some way to allow you to access the recently added menu.
Edit: After looking at the code in the second demo version, it doesn't seem like there is any pre-programmed way to access the new type in this version.
source share