Currently, I am working on an ASP.NET webform application where I am utilizing a webdropdown component (from Infragistic). My goal is to be able to enable or disable a specific item in the webdropdown using JavaScript. So far, I have successfully disabled it on the server-side by setting the disabled property of an item to true.
<ig:WebDropDown ID="myDropDown" runat="server" Width="200px" DropDownContainerWidth="200px">
</ig:WebDropDown>
C# Server-side:
myDropDown.Items[0].Disabled = true;
The challenge I am facing now is figuring out how to achieve the same functionality in JavaScript. I am struggling to understand how to select my dropdown in JavaScript, iterate through its items, and then enable or disable them accordingly.
I would greatly appreciate any assistance you can provide. Thank you in advance!