JavaScript获得Asp.net中RadioButtonList选中控件的值
2014-06-17 18:16:27 访问(3292) 赞(0) 踩(0)
function GetRadioButtonListValue(clientID) {
var idx = 0;
var theCtrl = null;
while (true) {
theCtrl = document.getElementById(clientID + "_" + idx);
if (theCtrl == null)
return null;
if (theCtrl.checked)
return theCtrl.value;
idx = idx + 1;
}
}
function CallGetRadioButtonListValue() {
var theValue = GetRadioButtonListValue("<%=this.rbl_emToPY.ClientID %>");
}
上一条:
下一条:
相关评论
发表评论