I have read following SO topic
and I have wrote following code:
$form = $("#form"); 
$form.bind('ajax:complete', function() {
            alert("done");
 });
 $form.submit();
But I don't see alert after submit click.
Fiddle a bit wrong because I don't know endpoint where I can send request. but on my local mashine I see same result
 
     
     
    