Getting the selected values in a multiselect tag in Javascript

前端 未结 3 638
逝去的感伤
逝去的感伤 2021-02-07 09:35

I have the following code

function searchFlights() {
    var select1 = document.getElementById(\"airports-select-1\");
    var selected1 = [];
    while(select1         


        
3条回答
  •  逝去的感伤
    2021-02-07 09:57

    Update for 2018:

    • If the

    提交评论

提交回复
热议问题