any way to change the background color of a textbox depending on whether it is enabled or disabled?
I have a javascript function that will enable it or disable it depending on whether a checkbox is checked or not...but it doesnt "look" disabled...i'd like people to KNOW they cant access it... ie. make the background gray
Any advice would be great...
Not sure if this is CSS or JS: background color of textbox
Moderator: General Moderators
I should do it auto but you can do this
Code: Select all
document.FORMNAME.TEXTBOXNAME.style.backgroundColor='grey';