1returning false here won't be executed and the form will be submitted either way. You should also call preventDefault to prevent the default form action for Ajax form submissions.
2
3function mySubmitFunction(e) {
4 e.preventDefault();
5 someBug();
6 return false;
7}
8
9Get more references : https://stackoverflow.com/questions/3350247/how-to-prevent-form-from-being-submitted