954,591 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

hover code in textbox in form html code

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



Last Name :

First Name :

Email Address :

bella422316
Newbie Poster
3 posts since Sep 2010
Reputation Points: 10
Solved Threads: 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.

roje0913
Newbie Poster
7 posts since Aug 2006
Reputation Points: 10
Solved Threads: 1
 

Have you done a Google search? Something like "CSS form fields hover" will do the trick. Or even search the DaniWeb forums...

I found this: http://www.daniweb.com/tutorials/tutorial66079.html

remarkablyso
Junior Poster in Training
62 posts since Sep 2010
Reputation Points: 10
Solved Threads: 2
 

I found this bit of jquery yesterday!
http://www.keyframesandcode.com/code/development/javascript/jquery-highlight-plugin/
which does several useful things.

drjohn
Posting Pro in Training
445 posts since Mar 2010
Reputation Points: 76
Solved Threads: 80
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: