0
I need to mount a select where the user can add new options, so I need the select to allow typing and a button next to it would call the function to include in the list.
How can I do that?
I only have the basic select with the link that should work as a button:
<select class="tags" name="abrangencia" style="width: 300px;">
<option value="">opt 1</option>
<option value="">opt 2</option>
<option value="">opt 3</option>
<option value="">opt 4</option>
</select>
<a>
<img style="height: 38px; margin: -10px;" src="imagens/campanha/botao-mais.jpg">
</a>
Related: https://answall.com/questions/92187/como-addir-option-para-um-select-por-jquery-javascript
– novic