If statement

wxdqz

New Member
Hi all

Simple one I think

SCRIPT

if (document.mail.VATnumber.value <1 || document.mail.VATNO.checked==false){
alert("You answered yes to VAT registration, please enter your VAT company registration No.");
return false;
}

When I run this script with VATnumber less than 1 and VATNO un-checked why does the statement return false and display the error message.


Regards

Dereck
 
Back
Top