How to select one option multiple times from jquery,js or html

406 Views Asked by At

I'm stuck with multiple select options where I want to select particular options multiple times I read select2 doc I don't get the result please help me out

<select id="exppicker" name="experience[]" data-size="6" data-max-options="5"
                                        class="form-control"  data-live-search="true">
                                        <option class="option">Activity</option>
                                        <option class="option">Adventure</option>
                                        <option class="option">Coffee/Tea</option>
                                        <option class="option">Food</option>
                                        <option class="option">Bar</option>
                                        <option class="option">Movies</option>
                                        <option class="option">Museums</option>
                                        <option class="option">Crafts</option>
                                    </select>

This is my Select box where I want to select the Activity option multiple times.

1

There are 1 best solutions below

0
On

"Select target" option at the top of the list. When the user selects an option, just register it, and reset the select element to the top option. If you want to see the user select, show it in a separate element, or change the text shown in the top option. The only ans I got.