Get value of multiselect box using jQuery or pure JS

前端 未结 6 1256
傲寒
傲寒 2020-12-03 02:11

In the code shown below, how to get the values of multiselect box in function val() using jQuery or pure JavaScript?



        
6条回答
  •  情深已故
    2020-12-03 02:58

    You could do like this too.

    Then take the multiple selection from following PHP code below. It print the selected multiple values accordingly.

    $shift=$_POST['selectDuration'];
    
    print_r($shift);
    

提交回复
热议问题