# Toggle switch

Proper way of definding toggleswitch

define toggleswitch based on select tag and data-role="toggleswitch"

define toggleswitch based on select tag and data-role="slider"

### To display jqm style swtich, set text for option tag

define long toggleswitch like slider based on select tag and data-role="slider"

Text toggle switch: set element width

define short toggleswitch like slider based on select tag and data-role="slider"

2. Text toggle switch: