Users Pricing

forum

home / developersection / forums / enable disabled radiobuttonlist with jquery

Enable disabled Radiobuttonlist with jQuery

Anonymous User 2571 30 Nov 2014

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?


I am a content writter !


1 Answers