Form Plugin Methods

After jQuery Mobile auto-enhances form controls into custom controls, you can manipulate many of their properties via plugin methods. The currently available methods are listed below. Check Github for updates - we're working on complete coverage.

Selectmenu

Methods
open open a closed select menu

$('select').selectmenu('open');
			
close close an open select menu

$('select').selectmenu('close');
			
refresh: Update the custom menu 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);
			
enable: enable a disabled select.

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

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

Textinput

Methods
enable: enable a disabled textinput/textarea.

$('input').textinput('enable');
			
disable: disable a textinput/textarea.

$('textarea').textinput('disable');
			

checkboxradio

Methods
enable: enable a disabled checkboxradio.

$('input').checkboxradio('enable');
			
disable: disable a checkboxradio.

$('textarea').checkboxradio('disable');
			
refresh: refresh a checkboxradio's value.

$('textarea').checkboxradio('refresh');