项目实践之javascript技巧_javascript技巧
程序员文章站
2022-05-04 22:05:24
...
JS设置控件enabled为可交互
document.getElementById("控件ID").disabled ="";
JS设置控件enabled为不可交互
document.getElementById("控件ID").disabled ="none";
js给dropdownlist赋值
document.getElementById("控件ID").options.add(new Option("文字","文字"));
document.getElementById("控件ID").disabled ="";
JS设置控件enabled为不可交互
document.getElementById("控件ID").disabled ="none";
js给dropdownlist赋值
document.getElementById("控件ID").options.add(new Option("文字","文字"));