how to create input (type = text) which accepts values from select option?
In html we create input box as input(type='text') and
<select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="opel">Opel</option>
<option value="audi">Audi</option>
</select>
How do you make a text box, which permits option only from options
provided for, either thru (the select tag or otherwise). The idea is that
the user can type the input rather than to have to choose from dropdown.
I can use typeahead. But how to confine inputs limited to typeahead
options. Thru javascript? Is that the only solution?
No comments:
Post a Comment