页面中用的DropDownList控件时,需要用javascript客户端脚本进行验证时,

var ddl = document.getElementById("控件名");
取得选中的列的值
ddl.options[ddl.selectedIndex].text
取得选中值相对应的ID
ddl.options[ddl.selectedIndex].value

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2021-05-15
猜你喜欢
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
相关资源
相似解决方案