yongsing
asked on
Set readOnly color same as disabled color
I have a text field, and I use javascript to set its "readOnly" attribute to true dynamically. The text color is still black. Is it possible to make this color the same as when the "disabled" attribute is set to true, which is grey? Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
[textfield].style.color = "GrayText";