Select Menus

Home Search

Select menus

The select menu plugin has the following methods:

close close an open select menu

enable enable a disabled select

disable disable a select.

open open a closed select menu (custom menus only)

refresh update the custom select
This is used to update the custom select to reflect the native select element's value. If the number of options in the select are different than the number of items in the custom menu, it'll rebuild the custom menu. Also, if you pass a true argument you can force the rebuild to happen.

//refresh value			

//refresh and force rebuild
$('select').selectmenu('refresh', true);