How can I determine the SelectedValue of a RadioButtonList in JavaScript?

前端 未结 13 2163
一生所求
一生所求 2020-12-16 15:20

I have an ASP.NET web page with a databound RadioButtonList. I do not know how many radio buttons will be rendered at design time. I need to determine the SelectedValue on

13条回答
  •  情深已故
    2020-12-16 16:00

    Try this to get the selected value from the RadioButtonList.

    var selectedvalue = $('#<%= yourRadioButtonList.ClientID %> input:checked').val()
    

提交回复
热议问题