Tagged: Highlight Related Label when Input in Focus

Highlight Related Label when Input in Focus

  $(“form :input”).focus(function() { $(“label[for='” + this.id + “‘]”).addClass(“labelfocus”); }).blur(function() { $(“label”).removeClass(“labelfocus”); });