The text input plugin has the following options:
initSelector
default: "input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input:not([type])"
This is used to define the selectors (element types, data roles, etc.) that will automatically be initialized as textinputs. To change which elements are initialized, bind this option to the mobileinit event:
$( document ).bind( "mobileinit", function(){ $.mobile.textinput.prototype.options.initSelector = ".myInputs"; });
theme
default: null, inherited from parent
Sets the color scheme (swatch) for all instances of this widget. It accepts a single letter from a-z that maps to the swatches included in your theme.
$('.selector').textinput({ theme: "a" });
This option can be overridden in the markup by assigning a data attribute to the input, e.g. data-theme="a".
data-theme="a"