jQuery in Action, 3rd edition
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

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: 63865

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]
I agree. Here's the link: http://aspose.com/file-tools
subject: grey out fileds javascript?
It's not a secret anymore!