<select id="department" onchange="" style="width:150px;">
</select>
departmentList = oBook.departmentList;
var departmentSelect = document.getElementById("department");
departmentSelect.options.length=0;/**清空下拉框的值*/
if((departmentList!=null)&&(departmentList.length!=0)) { for(var i=0; i<=departmentList.length; i++){   var op = new Option();    op.text=departmentList[i].name;    op.value=departmentList[i].id;   departmentSelect.options.add(op); }
}

相关文章:

  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案