*This should work for your markup

$(document).ready(function(){
$("input[type=radio]:checked + label").addClass("hilite");
$("input[type=radio]").change(function () {
$(this).parent().find("label.hilite").removeClass("hilite");
var id = $(this).attr("id");
$("label[for="+ id + "]").addClass("hilite");
});
});

Reply via email to