I have this code.
<select class="select"> <option value="1">Один</option> <option value="2">Два</option> <option value="3">Три</option> <option value="4">Четыре</option> <option value="5">Пять</option> <option value="6">Шесть</option> </select>
And there is an input in which there may be text, but it is better not to touch it, but at the same time add the value from select .
How to implement it with JS? Started with this:
$('input').val($('input').val() + $('.select option:selected').val());
On this and finished ..
Get out.