InputFocus
This simple class just adds a css class (the default is "focused") to an input when it has focus:
input.focused { background-color: #ddd; }
new InputFocus($('test'));

Execute the code above, and when you put your mouse into the input it's background will change color.
cnet-libraries/09-forms/04.1-inputfocus.txt · Last modified: 2008/11/17 23:39