How would one create a form element/button that can be styled/scripted to behave as a sliding/toggle button, similar to:
By clicking on the arrow, it would submit the form and change the status to "on" if it was off, or "off" it was on, updating the visual representation accordingly.