I have a radiobuttonlist initially disabled
(Enabled="false"). I want to enable it on a button click. The jQuery
line that would enable the radiobuttonlist is as follows:
$("#<%=MyRadioButtonList.ClientID%>").prop("disabled",
false);
But it does not work. What I noticed is that ASP.NET
encloses the input tag with which, if I understand correctly, prevents the
javascript code from enabling the list.
What would you suggest?
Anonymous User
01-Dec-2014You can simply try like this
$("#<%=MyRadioButtonList.ClientID %>").find('input').prop('disabled', false);