all groups > dotnet jscript > june 2007 >
You're in the

dotnet jscript

group:

IE7 and disabled property


IE7 and disabled property John Grandy
6/1/2007 12:27:07 PM
dotnet jscript:
Apparently in IE7 you can no longer use

control.disabled = true;
control.disabled = false;

Instead you must use

control.disabled = 'disabled';

But

control.disabled = 'enabled'

doesn't work.

Neither does

control.disabled = '';

Anyone know the correct cross-browser solution for dynamically
enabling/disabling checkboxes ?

Thanks.

Re: IE7 and disabled property Martin Honnen
6/2/2007 2:35:34 PM
[quoted text, click to view]

disabled is a boolean property so setting it to true or false is the
right way, I don't see anything in
<http://msdn2.microsoft.com/en-us/library/ms533732.aspx>
that this has changed in IE 7.


--

Martin Honnen --- MVP XML
AddThis Social Bookmark Button