How To Get The Selected Value Of a RadioButtonList In JQuery



TODO:

Have you ever wanted to get the selected value of a RadioButtonList using JQuery?  You can do it via CssClass, but in this example, I want to target a particular control.

 

SOLUTION:

//handle nothing being checked
if ($("#<%= rblMyRadioList.ClientID %> input:checked").val() == null) {
     return;
}

var selectedValue = $("#<%= rblMyRadioList.ClientID %> input:checked").val().toUpperCase();

 

NOTES:

There are no notes on this topic.