This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes grey out fileds javascript? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "grey out fileds javascript?" Watch "grey out fileds javascript?" New topic
Author

grey out fileds javascript?

Frank Jacobsen
Ranch Hand

Joined: May 17, 2002
Posts: 353
I have 3 input fields in a form, when "onClick" i have to grey out the other two fields, do anyone knows where to find an example how to do this ???

Frank
[ January 26, 2006: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61306
    
  66

In the onclick handler, set the backgroundColor CSS style of the fields to the color you want.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
GeeCON Prague 2014
 
subject: grey out fileds javascript?