File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "grey out fileds javascript?" Watch "grey out fileds javascript?" New topic

grey out fileds javascript?

Frank Jacobsen
Ranch Hand

Joined: May 17, 2002
Posts: 358
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 ???

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

Joined: Jan 10, 2002
Posts: 63540

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

[Asking smart questions] [About Bear] [Books by Bear]
Don't get me started about those stupid light bulbs.
subject: grey out fileds javascript?
It's not a secret anymore!