Maison >interface Web >js tutoriel >项目实践之javascript技巧_javascript技巧
JS设置控件enabled为可交互
document.getElementById("控件ID").disabled ="";
JS设置控件enabled为不可交互
document.getElementById("控件ID").disabled ="none";
js给dropdownlist赋值
document.getElementById("控件ID").options.add(new Option("文字","文字"));