onsubmit multiple javascript functions
Use & instead of &&. && uses short-circuit evaluation and so doesn’t evaluate the right-hand operand if the left-hand operand is falsy. & always evaluates both operands. onsubmit=”return !!(validateName() & validatePhone() & validateAddress() & validateEmail());” EDIT: Sorry, I forgot that & won’t return an actual boolean. Wrap the expression in parentheses and use a double … Read more