Expensive,
I have an input text that will receive a date, and after completing this field, I need the combo selects 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 inputs disabled, but when I set a date in the input (payment), combos selects remain disabled. What am I doing wrong?
Thank you.