Can you do it in javascript / jQuery?
HTML:
<div class="container"> <div class="c-window"></div> <div class="switch white"> <input type="radio" name="switch" value="0" id="switch-off" class="switch"> <input type="radio" name="switch" value="1" id="switch-on" class="switch" checked> <label for="switch-off">On</label> <label for="switch-on">Off</label> <span class="toggle"></span> </div> </div>
jQuery (to catch the change event):
$(document).ready(function(){ $('.switch').on('change', function(ev){ if ($(this).val() == 0){
source share