如何获取当前 select 元素的值
如果 select 元素下的所有 option 元素均没有指定 selected 属性,会默认选中第一个。
可以通过 select.selectedIndex 获取到选中的 option 元素的索引。
2010-03-29
如何获取当前
select
元素的值
