Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

grey out fileds javascript?

 
Frank Jacobsen
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65225
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the onclick handler, set the backgroundColor CSS style of the fields to the color you want.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic