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>

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.