转自:https://blog.csdn.net/pt_sm/article/details/53521560

方法一 

document.getElementById("selectid").options.length = 0; 


方法二 

document.formName.selectName.options.length = 0; 


方法三 

document.getElementById("selectid").innerHTML = ""; 不知道为了什么,只有这个方法三灵
方法4:
document.getElementById("selectid").Empty()

相关文章:

  • 2021-08-07
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
  • 2021-10-09
  • 2021-10-26
猜你喜欢
  • 2021-08-26
  • 2021-10-20
  • 2019-01-18
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
相关资源
相似解决方案