$(function () {
$("input[name='RadioType']").each(function () {
if ($(this).val() == '<%: ViewData["RadioType"]%>') {
$(this).attr("checked", "checked"); } }) })
$(function () {
$("input[name='RadioType']").each(function () {
if ($(this).val() == '<%: ViewData["RadioType"]%>') {
$(this).attr("checked", "checked"); } }) })
转载于:https://www.cnblogs.com/yisheng/archive/2012/11/05/2754435.html