var ddl = document.getElementById("DropDownList1");
        alert(ddl.selectedIndex);//选择索引值
        alert(ddl.options[ddl.selectedIndex].value);//绑定值
        alert(ddl.options[ddl.selectedIndex].text);//文本值    

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
  • 2021-07-08
  • 2021-07-04
  • 2021-08-14
  • 2022-12-23
猜你喜欢
  • 2021-08-07
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案