0

How do you change the color background in a textbox form when you hover over it in html code and when you are not hovering over changes back to the default?


here is html code

how can i have email address' textbox background to change color when it is hovered over

<form>

Last Name : <input type="text" name="Last name" /><br />
First Name : <input type="text" name="First name" /><br />
Email Address : <input type="password" name="Email" /><br />
</form>

4
Contributors
3
Replies
5
Views
7 Years
Discussion Span
Last Post by drjohn
0

I do it by javascript onfocus. a simple google search of this will give you what you want. Most will have the script to change the text in the box, you just need to set it to change the style instead.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.