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
1
vote
1 answer

Change text color with jQuery mobile flip switch

I'm trying to change the text colour of 2 classes depending on whether the query mobile flip switch is on or off. I was under the impression the flip switch was just a checkbox with the on state being checked and off state being unchecked. My…
rizzledon
  • 145
  • 1
  • 2
  • 11
1
vote
3 answers

Bind knockout.js to a boolean JQuery Mobile flip switch toggle

i have a boolean value bound to a JQM flip switch toggle, but i'm not able to see it reacting to changes to the underlying observable. This is my true/false observable: ko.booleanObservable = function (initialValue) { var _actual =…
1
vote
2 answers

JQuery Mobile - How to set Flip toggle switch slide Duration

I'm trying to use the "Flip Toggle Switch" the jQuery Mobile library. But I think the cursor animation is a bit too fast ... Does anyone know a way to change the duration of the animation? I have already looked inside the. js of jQuery and jQuery…
Glenn Sonna
  • 1,853
  • 3
  • 19
  • 25
1
vote
1 answer

how to submit form when the flip switcher go to on state in jquery mobile

I have simple form contain two input user name & password and flip swithcher I want to sumbitt the form when the flip go to on state I try using this :
Bleistift
  • 27
  • 1
  • 6
0
votes
3 answers

jQuery multi part if statement not working

I have a jQuery Mobile form I am working on where when the user tries to submit the form I would like to check the settings of 2 inputs. The first input is a jquery mobile flipswitch and the second is a checkbox. If my flipswitch value is 1 and…
Austin
  • 1,619
  • 7
  • 25
  • 51