Hello
I am using the following line of code at the very end of my html file to
run a javascript function before a form is submitted.
document.forms[0].onsubmit = chkUsername;
It works for one method, but what do I do when I want to call 2 methods? I
tried this:
document.forms[0].onsubmit = chkUsername;
document.forms[0].onsubmit = chkUsername2;
but the last one is the only one that is run. It seems overwrite the first
one.
Does anyone have any suggestions?
Thanks