How to make an accompanying label clickable so that it toggles the checkbox to the opposite state?
jqvery
$(".domain").click(function(){
if($('input',this).prop('checked')){
$('input',this).prop('checked', false);
}
else{
$('input',this).prop('checked', true);
}
});
css
.domain {
cursor:pointer;
}
HTML
vvvv
Comments