Home > DeveloperSection > Forums > Enable disabled Radiobuttonlist with jQuery
Chintoo Semi

Total Post:135

Points:947
Posted on    November-30-2014 10:10 PM

 JQuery JavaScript  RadioButton 
Ratings:


 1 Reply(s)
 719  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?



Kamlakar Singh
Kamlakar Singh

Total Post:194

Points:1396
Posted on    December-01-2014 7:16 AM

You can simply try like this

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


Don't want to miss updates? Please click the below button!

Follow MindStick