CodeName-2956981 CodeName-2956981 - 1 year ago 110
jQuery Question

How to get value from RadioButtonList using jQuery?

I need to find out what is the selected value of RadioButtonList:

<div class="editor-field radio-button-list">
<%= Html.RadioButtonListForEnum("Type", Model.Type)%>

I tried to use:
but all I get is "undefined"... Any ideas?

Answer Source

I'm not sure the id of Type is coming out how you think it is. Or maybe Type is a duplicate Id. In any event, I think this is what you want

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download