Home » Development » How to disable a DropDownList or ComboBox using JavaScript

How to disable a DropDownList or ComboBox using JavaScript

It may be tricky depending on the situation. Here is what it works in my case:

var objectListCountry = $find("<%= listCountry.ClientID %>");
objectListCountry.set_enabled(false);

Ned Sahin

Blogger for 20 years. Former Microsoft Engineer. Author of six books. I love creating helpful content and sharing with the world. Reach me out for any questions or feedback.

Leave a Comment