Hi,
I'm really new to Javascript. I'm trying to use a date validation check function and a password validation check function at the same time.
WHen I use the usual OnSubmit= "return FunctionName();"
each function works fine individually.
However when I try to use them together, it doesn't work. The approaches I've used are as follows:
1. OnSubmit= "return FunctionName(); return AnotherFunction();"
2. OnSubmit= "return Do All(); where DoALL() calls both of the above two function like:
Function Do All(){
return FunctionName();
return AnotherFunction();
}
3. OnSubmit = "return FunctionName();" where FunctionName() calls AnotherFunction () at its end.
There is probably a very obvious solution to this, which i would appreciate if someone could point out!!,
Thanks.
I'm really new to Javascript. I'm trying to use a date validation check function and a password validation check function at the same time.
WHen I use the usual OnSubmit= "return FunctionName();"
each function works fine individually.
However when I try to use them together, it doesn't work. The approaches I've used are as follows:
1. OnSubmit= "return FunctionName(); return AnotherFunction();"
2. OnSubmit= "return Do All(); where DoALL() calls both of the above two function like:
Function Do All(){
return FunctionName();
return AnotherFunction();
}
3. OnSubmit = "return FunctionName();" where FunctionName() calls AnotherFunction () at its end.
There is probably a very obvious solution to this, which i would appreciate if someone could point out!!,
Thanks.