Using a jQuery Flip Toggle Switch for submitting two different status informations for the control of a relais

Using a jQuery Flip Toggle Switch for submitting two different status informations for the control of a relais

Hi

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

Instead of using:
<input type=submit name=relais=RELAIS1_ON onclick="relais1_on()"><br><br>
<input type=submit name=relais=RELAIS1_OFF onclick="relais1_off()"><br><br>

I like to us a jquery flip toggle switch, to switch on and off a relais.

Does anybody know, how to to programm this?

Thanks in advance for any help

All my best


Thomas