within the last pair of parentheses in the second "if" (on the first line of that "if"), i need a greater than statement. It has to state that the value of the down_payment variable cannot be greater than 51% of the property_value variable. I have no idea how to state such a thing using a boolean statement. (Note that all of this will be done DURING the validation phase).
if (property_value.value == "" || isNaN(property_value.value) || (property_value.value <= 60000)){ property_value.style.border = "red solid 2px"; valid = false; }if (down_payment.value == "" || isNaN(down_payment.value) || (){ down_payment.style.border = "red solid 2px"; valid = false;}
Edited by Midevil Chaos, 29 July 2012 - 05:13 PM.