Select Menus

Home

Select menus

The select menu plugin has the following methods:

close close an open select menu

$('select').selectmenu('close');
				
enable enable a disabled select

$('select').selectmenu('enable');
				
disable disable a select.

$('select').selectmenu('disable');
				
open open a closed select menu

$('select').selectmenu('open');
				
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
$('select').selectmenu('refresh');

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