Questions tagged [jquery-mobile-flipswitch]

The flip switch is JQuery mobile's toggle switch widget. It can be operated by clicking or swiping.

A toggle switch is a common element in User Interfaces mimicking a physical switch that allows the user to select between two states. To create a basic on/off switch in JQuery-mobile use a <select> with two options and the attribute data-role="slider":

<label for="flip-1">Select slider:</label>
<select name="flip-1" id="flip-1" data-role="slider">
    <option value="off">Off</option>
    <option value="on">On</option>
</select>
38 questions
0
votes
2 answers

Change value of jQuery mobile flip switch using php

Does anyone know how to set the value of a jQuery mobile flip switch using just php? I have tried the below without any luck. Any ideas would be appreciated!
AddyProg
  • 2,960
  • 13
  • 59
  • 110
0
votes
1 answer

jquery mobile flipswitch active by default

I'm using query mobile 1.4.0 and I'm trying to make my flip switch active by default but I'm not really sure how to approach it. I've tried adding selected="selected" to the but it doesn't seem to make a difference. Anyone have any ideas? …
rizzledon
  • 145
  • 1
  • 2
  • 11
0
votes
1 answer

div not getting populated by ajax request

i'm trying to make an ajax call with jquery, it seems to be working, but i cant get it to populate the result div. Heres the JS code: