Чтобы при нажатии менялись поля местами
var button = document.getElementById('switch');
var input1 = document.getElementById('input1');
var input2 = document.getElementById('input2');
button.addEventListener('click', function() {
var input1Val = input1.value;
var input2Val = input2.value;
input1.value = input2Val;
input2.value = input1Val;
});
<div class="field">
<input type="text" id="input1" class="field__input">
</div>
<button id="switch">o</button>
<div class="field">
<input type="text" id="input2" class="field__input">
</div>
Апостиль в Лос-Анджелесе без лишних нервов и бумажной волокиты
Основные этапы разработки сайта для стоматологической клиники
Продвижение своими сайтами как стратегия роста и независимости