Two part question:
1. What's the difference between these three ifs: (pseudo code - not to be taken literally)
function Validate(txtBox) {
if txtBox.value==""
if txtBox.value==null
if txtBox.length == 0
return false;
}
}
2. None of these seem to be able to check for a blank space (i.e. if someone just hits the space bar once or several times) How do you validate for someone doing this?
Seek not outside yourself; heaven is within.
1. What's the difference between these three ifs: (pseudo code - not to be taken literally)
function Validate(txtBox) {
if txtBox.value==""
if txtBox.value==null
if txtBox.length == 0
return false;
}
}
2. None of these seem to be able to check for a blank space (i.e. if someone just hits the space bar once or several times) How do you validate for someone doing this?
Seek not outside yourself; heaven is within.