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 :
<select name="flip-1" id="flip-1" data-role="slider">
<option value="off"></option>
<option value="on"><input type="submit" value="" data-inline="true" /></option>
</select>
but not work any one can help???
Here's a working code.
HTML :
Javascript :
EDIT :
This should do it:
setInterval is here just so it can look like flip switch was turned on then off.