How to make an Inputfield change its design when active?

Posted by Opoe on Stack Overflow See other posts from Stack Overflow or by Opoe
Published on 2011-01-10T19:50:23Z Indexed on 2011/01/10 19:53 UTC
Read the original article Hit count: 244

Filed under:
|
|
|
|

Hi all,

Let's say my background color is red. I want the input textfield to appear red, but when you click inside the input field to type it becomes a regulad textfield. And ofcourse when you are not active in the input field it should be back to its original state (red).

Its actually something you see quite often. I thought of using toggleclass?

My input fields are all appended with jQuery

Thanks in advance

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html