jQuery("#"+ ddlId).attr('disabled', 'disabled');
It works good in FF and Chrome. But it does not work in IE.
How can I fix it?
1 Answer, 1 is accepted
answered on 06 Jun 2012, 11:16 AM
In IE there is an issue with the disabled property of the DOM elements, when it comes to tracking it. This issue is reproduced only when the element is enabled and should become disabled. The other way around the tracking is working, i.e. if the select is disabled it can be enabled and IE will raise an event about it. This is a browser issue and there is nothing that we can do on our side to work around it.
Nevertheless there is a different approach that should work. For decorated select elements there is a FormDecorator method to update the decoration on it when the disabled property changes. Here is a sample piece of code:
$addHandler($get("checkbox"), "click", function()
var fd = getFormDecorator();
var select = $get("select");
select.disabled = !$get("checkbox").checked;
Hope this helps.
All the best,
the Telerik team
Explore the entire set of ASP.NET AJAX controls we offer here and browse the myriad online demos to learn more about the components and the features they incorporate.