Sorry for the confusion, I think I messed up the problem. Orignal problem is In IE if a text box is disabled the background color of that text box remains white so there is no visible change in an enabled text box and in a disabled text box. In general following is valid document.getElementById('eleName').disabled=true; document.getElementById('eleName').className='disabledClass'; But if you need to automate this thing i.e. you don't need to write document.getElementById('eleName').className='disabledClass'; again and again for every control you are disabling or enabling what should we do then. Is there any way to to achieve that. When you change the disabled property to true or false then JAVASCRIPT must be calling a method which would set that control as disabled or enabled. So is there any way to override that particular method which gets executed when we modify the disabled property of any control. Regards, Zaid "Atkinson, Robert" <ratkinson@xxxxxxxxxxxxx> wrote: In that case, you've been sending us around the houses. You just need to set the classname at the same time :- http://msdn2.microsoft.com/en-us/library/ms533560.aspx Rob. -----Original Message----- From: php-objects@xxxxxxxxxxxxxxx [mailto:php-objects@xxxxxxxxxxxxxxx] On Behalf Of Shaikh Md. Zaid Sent: 20 December 2007 13:07 To: php-objects@xxxxxxxxxxxxxxx Subject: Re: Re: Applying CSS to a disabled control Hi, Actually I want to change the class name of a control when a change to its disabled property is modified. For example: if I issue document.getElementById('eleName').disabled = true; then an event has to fire and in that event I write the code which would change the className property of 'eleName'. This would be a centralized change. Regards, Zaid *********************************************************************************** Any opinions expressed in email are those of the individual and not necessarily those of the company. This email and any files transmitted with it are confidential and solely for the use of the intended recipient or entity to whom they are addressed. It may contain material protected by attorney-client privilege. If you are not the intended recipient, or a person responsible for delivering to the intended recipient, be advised that you have received this email in error and that any use is strictly prohibited. Random House Group + 44 (0) 20 7840 8400 http://www.randomhouse.co.uk http://www.booksattransworld.co.uk http://www.kidsatrandomhouse.co.uk Generic email address - enquiries@xxxxxxxxxxxxxxxxx Name & Registered Office: THE RANDOM HOUSE GROUP LIMITED 20 VAUXHALL BRIDGE ROAD LONDON SW1V 2SA Random House Group Ltd is registered in the United Kingdom with company No. 00954009, VAT number 102838980 *********************************************************************************** --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. [Non-text portions of this message have been removed]