Can I use bootstrapDualListbox()
to create an input that allows selecting the same value multiple times. I've been looking for a way to this, but didn't found. Assuming I have a list
<select multiple>
<option value="1"> One </option>
<option value="2"> Two</option>
<option value="3"> Three</option>
</select>
How to get an input that allows selecting this kind of multiple items: 1,1,2,3,3?
I've tried to find a way to use bootstrap dual listbox plugin, but I can only select one item one time. I'm expecting to select one item multiple times if I want to.
You can add a multiple
attribute to your <select>
so you can multi-select by holding CMD or Ctrl key
Docs here
<select multiple> <option value="1"> One </option> <option value="2"> Two</option> <option value="3"> Three</option> </select>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.