0

How to make the option group select able

<select>
   <optgroup value="0" label="Parent Tag">
      <option value="1">Child Tag</option>
      <option value="2">Child Tag</option>
   </optgroup>
</select>

1 Answers1

0

<select multiple>
    <option value="0" label="Parent Tag"></option>
    <option value="1">Child Tag</option>
    <option value="2">Child Tag</option>
</select>

Choose multiple options with Ctrl+Click but it will make the only options, not dropdown. If you want to make it dropdown use bootstrap(https://mdbootstrap.com/docs/jquery/forms/multiselect/) or Angular Material from (https://material.angular.io/components/select/overview)