- - Code, Content, and Presentation
- ---- Change label color on input focus
DrDoc - 7:47 pm on Jun 7, 2012 (gmt 0)
If you are using jQuery, it's quite easy, since it allows you to check for previous siblings of a given type with minimal effort.
Otherwise, simply wrap your
<label> _around_ your input, and change the background of the parent node.
Brought to you by WebmasterWorld: http://www.webmasterworld.com