$('input').focus(function() { $(this).prev('label').css('color', 'green');}).blur(function() { $(this).prev('label').css('color', 'blue');});;
How can i change the background color of a label when the input is selected. The label in question is for a serie of radio input.
Thanks a lot for any suggestion
$('input').focus(function() {$(this).prev('label').css('color', 'green');
}).blur(function() {
$(this).prev('label').css('color', 'blue');
});;