In the code shown below, how to get the values of multiselect box in function val() using jQuery or pure JavaScript?
val()
You could do like this too.
Last 1 Week Last 2 Week Last 3 Week Last 4 Week Last 5 Week Last 6 Week
Then take the multiple selection from following PHP code below. It print the selected multiple values accordingly.
$shift=$_POST['selectDuration']; print_r($shift);