View Single Post
Old 04-06-2012, 08:04 AM   PM User | #1
nkaul
New to the CF scene

 
Join Date: Apr 2012
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
nkaul is an unknown quantity at this point
Modifying .disabled property

Hi
I need to change the font color of the disabled textboxes of our application. These disabled textboxes exist at thousands of places both at pageload or disabled conditionally clientside.
I am aware that in IE8 there is no other way to change the fontcolor except use readonly. So i thought that maybe if I changed the .disabled property to something like -
Code:
Object.disabled {
    function set() {
        this.readOnly = value;
     }

    function get() {
         return this.readOnly;
     }
}
then it would make my task much easier. I searched and found out that Object.defineProperty ,may do the trick. However i am getting the mull reference error. Is there any other way?
nkaul is offline   Reply With Quote