Using Flip Toggle Switch for submitting two different status informations

Using Flip Toggle Switch for submitting two different status informations

I like to use a jQuery mobile flip toggle switch to submit two status informations to control the two status of a relais.

Instead of using:

<input class="scene_btn" type="submit" onClick="request('key=1')"
value="on" data-theme="d"
</input>
<input class="scene_btn" type="submit" onClick="request('key=2')"
value="off" data-theme="d"
</input>

I'd like to use a JQM flip toggle switch, to switch on and off a relais.

<form>
<label
for="flip-1">Flip toggle switch:</label>
<select name="flip-1" id="flip-1" data-role="slider">
<option
value="off">Off</option>
<option
value="on">On</option>
</select>
</form>



Does anybody know, how to to programm this?

Thanks in advance for any help!!!