0.0.329 upd logic for from_to_country inputs in b_new_route

This commit is contained in:
2023-12-20 14:18:31 +03:00
parent 410733211b
commit 0c146caeef

View File

@@ -412,10 +412,14 @@ function clearID(el) {
if(el.value !== "" && el.id === 'id_from_address_point_txt' ){
document.getElementById('id_from_address_point').value = ''
el.classList.add('red_text')
el.value = ''
// el.classList.add('red_text')
} else if(el.value !== "" && el.id === 'id_to_address_point_txt'){
document.getElementById('id_to_address_point').value = ''
el.classList.add('red_text')
el.value = ''
// el.classList.add('red_text')
}
}