I want to write an if statement to say if a certain value is over 0 then i need to check if two other values exist, and if they do not i need to prompt the user.
It sounds easy but I'm quite new to this
somewhere along the lines of :
function checkForm(form) {
if (form.Min.value > 0) {
if (form.Value1.value == "") {
if (form.Value2.value == "") {
alert ("\nYou must select Value1 or Value2.")
}
}
return false;
}
else return true;
}
any ideas ? thanx
It sounds easy but I'm quite new to this
somewhere along the lines of :
function checkForm(form) {
if (form.Min.value > 0) {
if (form.Value1.value == "") {
if (form.Value2.value == "") {
alert ("\nYou must select Value1 or Value2.")
}
}
return false;
}
else return true;
}
any ideas ? thanx