Hi, How can I add text/label "category" to the selected option value but hidden in the list of dropdown select?
The option should look like this:
Output we want: Category: Taxonomy Name
<select>
<option>text 1</option>
<option>text 2</option>
<option>text 3</option>
</select>
Right now:
<select>
<option>category: text 1</option>
<option>category: text 2</option>
<option>category: text 3</option>
</select>
<div class="nm-category-filter mobile-category">
<select data-store-id="{{ post.ID }}" class="getcatdishes" id="mobile-select">
{% for clone in post.add_menu %}
<option value="{{ clone.add_taxonomy.id }}">category: {{ clone.add_taxonomy.name }}</option>
{% endfor %}
</select>
</div>