



























VS2005在客户端用JS给RadioButtonList赋值:
var radioButtonstype = document.getElementsByName(‘控件Name’);//用查看源文件的方式找到控件的Name
if(aa[5]=='外委')
{
radioButtonstype[1].checked=true;//是checked属性,而在页面代码是Selected属性,
//因为在解析成html是input
}
else
{
radioButtonstype[0].checked=true;
}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。