I have two select fields and I want to compare them so if they both equal United States then alert the user.
Here is what I have but it doesn’t seem to work.
if(document.getElementById('country_o').value == "United States" AND document.getElementById('country_d').value == "United States") {
window.alert("BOTH US!");
}
Thanks!
Is it like this?
where AND is replaced by &&