I'm using the Select2 library. I will use it to search for help pages, however I need it to search for tags and not just for the text in Option ex:
Today:
<optgroup label="Mountain Time Zone">
<option value="AZ">Arizona</option>
<option value="CO">Colorado</option>
<option value="ID">Idaho</option>
<option value="MT">Montana</option>
</optgroup>
It searches only for Arizona, Colorado, Idaho
I would like something like this:
<optgroup label="Mountain Time Zone">
<option value="AZ" data-tag="Ari, City, USA">Arizona</option>
<option value="CO" data-tag="Col, City, Cores">Colorado</option>
<option value="ID">Idaho</option>
<option value="WY">Wyoming</option>
</optgroup>
Being able to search by the "data-tag" or any other form, however these tags would not need to appear in select