Kenneth schrieb:
I don't think I understand. The code I originally posted will indeed add the .focus class to the element(s), however once focus is lost the .focus class remains.
I was only suggesting a small simplification of your code.
$inputs.focus(function(){ $(this).addClass('focus'); }).blur(function() { $(this).removeClass('focus'); }); -- Jörn Zaefferer http://bassistance.de