function validateForm() {
var x = document.forms["quickestimate"]["width"].value;
var p = document.forms["quickestimate"]["pricerange"].value;
if ((x == "5") && (p >= "9.99")) {
// your allowed 5m wide just under 9.99
return true;
} else {
alert("Can't have 5m Wide and over £9.99");
return false;
}
}
7
solved An If statement with 2 variables?