Highlight Related Label when Input in Focus

$("form :input").focus(function() {
$("label[for='" + this.id + "']").addClass("labelfocus");
}).blur(function() {
$("label").removeClass("labelfocus");
});
Tags: Highlight Related Label when Input in Focus
by Subbu · Published September 13, 2013
by Subbu · Published September 10, 2013
by Subbu · Published May 3, 2013
More