Does adding a jquery submit handler guarantee that the event handler is completed before the form submits?
When a form is submitted, I want to first do an action, then let the form submit event continue.
I'm having a hard time telling if my event is always done before the form submits, or if this is actually just by chance due to timing with the js running before the post request sends and the next page loads.
$('.myform').submit(function(){
// Do something.
$('.myForm some_input').val("Hi!");
// Then submit the form as normal.
});