Je vhodné refaktorovat, normální onchange se nevyvolá když se změní hodnota pomocí datalistu
document.getElementById('form_1_LocalityPart').addEventListener('input', function () { localityPartChanged(form_1, true); });
document.getElementById('form_3_LocalityPart').addEventListener('input', function () { localityPartChanged(form_3, true); });
document.getElementById('form_4_LocalityPart').addEventListener('input', function () { localityPartChanged(form_4, true); });
Je vhodné refaktorovat, normální onchange se nevyvolá když se změní hodnota pomocí datalistu
document.getElementById('form_1_LocalityPart').addEventListener('input', function () { localityPartChanged(form_1, true); });
document.getElementById('form_3_LocalityPart').addEventListener('input', function () { localityPartChanged(form_3, true); });
document.getElementById('form_4_LocalityPart').addEventListener('input', function () { localityPartChanged(form_4, true); });