highlight the lable using jQuery - Jquery

lable highlighting

Snippet Code


  
Rate this page :
  [ 0 votes]

The code will highlight the lable coresponding to the input box selected.

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

Tags


Ask Questions

Ask Question