<script>
document.addEventListener("DOMContentLoaded", function() {
let c = document.getElementById("chosen-value");
let u = document.getElementById("chosen-value-new");
let g = document.getElementById("chosen-value-gru");
console.log(c,u,g);
c.addEventListener("keyup", function () {
if (c.value == "") {
u.disabled = true;
g.disabled = true;
}
else if (c.value == "МОСКВА") {
u.disabled = false;
}
});
});
</script>