Creating a form,
I have 2 functions
function myValidation() {
valName();
idChange();
}
input type="submit" value="submit" onclick="return myValidation();"
But when there are still errors my form submits, but when I put them separately (but not together) in onclick, they work fine and don't submit when there are errors.