let places = document.querySelectorAll('input[name="place"]');
let selects = document.querySelectorAll(".city__select");
let error = '<label class="error">This field is required.</label>';
places.forEach((place, i) =>
place.checked && !selects[i]?.value
? selects[i]?.insertAdjacentHTML("afterend", error)
: void 0
);