Why this dont work? When I change "$(this).toggleClass('checked');" on alert('test') and click label, I see alert window :-/
$(document).ready(function(){
$("label").click(function(){
$(this).toggleClass('checked');
});
});
<input type="radio" name="hours" id="hours1" value="xyz" style="display: none" />
<label for="hours1">10:00</label>
<input type="radio" name="hours" id="hours2" value="xyz" style="display: none" />
<label for="hours2">11:00</label>
Please see this working code . I hope, it fulfills your need