Open maatheeus opened 3 years ago
you found a way ?
Hi, Yes
<div id="autocomplete_exams" class="autocomplete">
<input class="autocomplete-input" />
<ul class="autocomplete-result-list"></ul>
<ul id="no-results" class="autocomplete-result-list" visible="false"></ul>
</div>
<input type="hidden" name="value_id" id="value_id">
Use hidden input to store the id value. Also use onchange in select to update the hidden input value
It's possible set value input and other value to label.
{"id":1, "name":"xpto"}
I need submit value id and show value name in search.
In js component