Enable disabled Radiobuttonlist with jQuery

Total Post:135

 1425  View(s)
Rate this:

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?

  1. Post:194

    Re: Enable disabled Radiobuttonlist with jQuery

    You can simply try like this

    $("#<%=MyRadioButtonList.ClientID %>").find('input').prop('disabled', false);



Enter your email address here always to be updated. We promise not to spam!