Answer the question
In order to leave comments, you need to log in
How to insert value data into input, like in?
I want to get away with <select>
and switch to input
autocomplete.
At the moment I have it in the search form.
<select data-placeholder="Выберите город" name="search[city]" >
<option value="">Выберите город</option>
<option value="tokio">Токио</option>
</select>
value="tokio"
into input
the city names being passed! var states = ['Киев', 'Москва', 'Токио'];
var states = ['kiev', 'moscow', 'tokio'];
<input value="tokio"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question