分别使用javascript原生的方法和jquery方法
<select ); //获取选中的项
2:alert(options.val()); //拿到选中项的值
3:alert(options.text()); //拿到选中项的文本

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2021-11-12
猜你喜欢
  • 2022-12-23
  • 2021-08-19
  • 2021-11-17
  • 2021-11-21
  • 2021-08-22
  • 2021-12-23
相关资源
相似解决方案