You can enable the creation of tags and a group of parameters. It seems to work here .
Use an element select
, with optgroup
for categories:
<select id="select-gear" class="demo-default" multiple placeholder="Select gear...">
<option value="">Select gear...</option>
<optgroup label="Climbing">
<option value="pitons">Pitons</option>
<option value="sling">Sling</option>
</optgroup>
<optgroup label="Skiing">
<option value="skis">Skis</option>
<option value="skins">Skins</option>
<option value="poles">Poles</option>
</optgroup>
</select>
When initializing, use the option create : true
:
$('
create: true
});
source
share