0
I’m using the library Select2. I’ll use it to search for help pages, but I need it to search for tags and not just for 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>
He only searches Arizona, Colorado, Idaho
I’d like something like:
<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>
You can search by "data-tag" or any other way, but these tags would not need to appear in select
Have you looked at this? https://harvesthq.github.io/chosen/
– Ivan Ferrer
Thank you, but this unfortunately does not also have the option to search in some field and show another
– Dorathoto