我在我看来有这样的代码。如何使用jquery或javascript获取单选按钮Id值
<%using (Html.BeginForm("X", "Y", FormMethod.Post, new { @id = "XSS" }))
{ %>
<fieldset>
<legend>Select Selection Type</legend>
<label>Default Selections:</label>
<input type="radio" id="Default Selections" name="selection" />
<br />
<label>Existing Selections:</label>
<input type="radio" id="Existing Selections" name="selection" />
</fieldset>
<input type="submit" value="submit">
<% } %>
在我的控制器后行动的结果,我试图让这个选择的价值我做
collection["selection"]
我不能让我检查单选按钮标识。我正在“开”,但我如何需要知道在我的视图中选择了哪个单选按钮?
感谢