Question: The following code snippet is used in form validation, the validate function returns a true if all validations are correct and returns false if the validation fails. The data is always submitted even if the validation fails, what could be the cause for this? <form name=frmadd method=post action=add.asp onsubmit=" validate() ">
A
B
C
There is no error, the code is fine
B
b. There should be a return statement before the call to the validate function
C
c. onsubmit=" validate() " should be replaced with " JavaScript:validate() "
Note: Not available