Get drop down value

后端 未结 5 740
时光取名叫无心
时光取名叫无心 2020-12-01 14:08

How to determine what is selected in the drop down? In Javascript.

5条回答
  •  旧时难觅i
    2020-12-01 15:14

    Like this:

    $dd = document.getElementById("yourselectelementid");
    $so = $dd.options[$dd.selectedIndex];
    

提交回复
热议问题