Onclick javascript stops form submit in Chrome

Eventhough in theory, your code should work, Chrome thinks otherwise, as noted in in this similar SO question and in this chrome groups discussion (may be a bug, may be the intended design).

First, when you want to allow / block a click you should use onclick="return someFunction()" and not onclick="someFunction()" - then the action will follow through only if that function returns true.

Now to make this work, you would have to submit the form from your function:

$(this).parents('form').submit()

You should use like this in your onclick="someFunctionToDoJob(); submit();" on your form.

And at your someFunctionToDoJob(); add this document.hereNameYourForm.submit();