$(":radio[name=s]").click(function () {
alert("选中了..." + $(this).val() + "on" + $(this).attr("htmlAttributes"));
$(this).attr("checked", 'checked')
});
js里尝试在选中事件发生后让他变成checked 但是没有起作用
@foreach (var item in Model)
…………
<p> @Html.RadioButton("s", 1, new { htmlAttributes = sid })@a</p>
<p> @Html.RadioButton("s", 2, new { htmlAttributes = sid})@b</p>
<p> @Html.RadioButton("s", 3, new { htmlAttributes = sid})@c</p>
<p> @Html.RadioButton("s", 4, new { htmlAttributes = sid })@d</p>