Hello,

Perhaps this would be a faster way of typing this (yet still easy to read):

$(function(){
   $("fieldset").find("intput,select,textarea")
   .focus(function(){ $(this).parent().addClass("on"); })
   .blur(function(){ $(this).parent().removeClass("on"); });
});

Also note that http://www.jquery.com/api/ is an excellent resource for
learning jQuery.

~Sean

Reply via email to