1
Expensive,
I have an input text that will receive a date, and after filling this field, I need the selected combo to be activated. By default, they are disabled.
if (document.getElementById("payment").value.length > 0){
document.getElementById('campo1').disabled = false;
document.getElementById('campo2').disabled = false;
document.getElementById('campo3').disabled = false;
document.getElementById('campo4').disabled = false;
} else {
document.getElementById('campo1').disabled = true;
document.getElementById('campo2').disabled = true;
document.getElementById('campo3').disabled = true;
document.getElementById('campo4').disabled = true;
}
The page loads with disabled inputs, but when I set a date in input (payment), the selects combos remain disabled. What am I doing wrong?
Grateful.
can use jquery?
– Jasar Orion
of course @Jasar, can yes
– user54154