Background Color using CSS
-
I want to change background color of Textbox when focus comes on to it and when outof focus background color again changes to its original. I want to do this using CSS and Javascript and i am using VS2008,C# Do anyone have idea about this. Thanks
-
I want to change background color of Textbox when focus comes on to it and when outof focus background color again changes to its original. I want to do this using CSS and Javascript and i am using VS2008,C# Do anyone have idea about this. Thanks
Have a look on below mentioned html for your problem. I tested this in firefox and it worked.
test input {background-color: yellow;} input:focus {background-color: red;}
Zafar Iqbal
-
Have a look on below mentioned html for your problem. I tested this in firefox and it worked.
test input {background-color: yellow;} input:focus {background-color: red;}
Zafar Iqbal
its not working background color has changed to Yellow on page load but on focus nothing is happening. Do we have any more solution..??