<br><br>
<div class="row">
<div class="col-sm-6">
<select multiple class="hgm-select-search" data-placeholder="Select an option" data-allow-deselect="true">
<option data-placeholder="true"></option>
<optgroup label="Fruits">
<option value="Apples">Apples</option>
<option value="Oranges">Oranges</option>
<option value="Bananas">Bananas</option>
</optgroup>
<optgroup label="Vegetables">
<option value="Tomatoes">Tomatoes</option>
<option value="Potatoes">Potatoes</option>
<option value="Carrots">Carrots</option>
</optgroup>
</select><!-- .hgm-select-search -->
</div>
</div>
<br><br>
<div class="row">
<div class="col-sm-6">
<select multiple class="hgm-select-search" data-placeholder="Select an option" data-allow-deselect="true">
<option data-placeholder="true"></option>
<optgroup label="Fruits">
<option value="Apples">Apples</option>
<option value="Oranges">Oranges</option>
<option value="Bananas">Bananas</option>
</optgroup>
<optgroup label="Vegetables">
<option value="Tomatoes">Tomatoes</option>
<option value="Potatoes">Potatoes</option>
<option value="Carrots">Carrots</option>
</optgroup>
</select><!-- .hgm-select-search -->
</div>
</div>
/* No context defined. */
Use data attributes directly on the select element to change the visual and functional behavior; the following data attributes are currently in use:
For more information on how to handle state changes on the search select and methods that are exposed to the document object model, visit the link below: