var select = document.getElementById("selectType");
    var index = select.selectedIndex;
    var text = select.options[index].text;
    var value = select.options[index].value;

相关文章:

  • 2021-12-24
  • 2021-11-21
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
猜你喜欢
  • 2022-02-25
  • 2021-12-28
  • 2022-01-14
  • 2021-12-02
  • 2021-12-05
相关资源
相似解决方案