I'm using following markup to create a checkbox-based Flipswitch in jQuery Mobile 1.4.5:
<label for="flip-1">Checkbox Flip switch:</label>
<input data-role="flipswitch" name="flip-1" id="flip-1" type="checkbox">
Apparently, the same method to get the value for a select-based Flipswitch:
$("#flip-1").val()
is not working with the checkbox-based version, and i'm getting always the value of "on".
What i'm doing wrong here? Is there a way to get the value as for the select-based version?
Thanks in advance