The slider plugin has the following options:
initSelector
default: "input[type='range'], :jqmData(type='range'), :jqmData(role='slider')"
This is used to define the selectors (element types, data roles, etc.) that should be used as the trigger to automatic initialization of the widget plugin. To affect all selects, this option can be set by binding to the mobileinit event:
$( document ).bind( "mobileinit", function(){ $.mobile.slider.prototype.options.initSelector = ".myslider"; });
theme
default: null, inherited from parent
Sets the theme swatch color scheme for the select element. This is a single letter from a-z that maps to the swatches included in your theme. By default, a select will inherit the same swatch color as it's parent container if not explicitly set. This option is also exposed as a data attribute: data-theme="a"
data-theme="a"
$('input').slider({ theme: "a" });