jQuery don't post form after preventdefault

jQuery don't post form after preventdefault

Hi.

I've a form loaded with AJAX and this form has a reCaptcha.
When post the form I want to validate the captcha and if there is ok post the form to server.

But I can't... 

My code (based with other help)

  1. $('#myForm').submit(function (e, passThrough) {  
  2.     if (passThrough === undefined) {  
  3.         e.preventDefault();

  4.         var captchaInfo = {
  5.             challengeValue: Recaptcha.get_challenge(),
  6.             responseValue: Recaptcha.get_response(),
  7.         };

  8.         $.ajax({
  9.             type: 'POST',
  10.             url: captchaValidateUrl,
  11.             data: JSON.stringify(captchaInfo),
  12.             contentType: 'application/json; charset=utf-8',
  13.             dataType: 'json',
  14.             success: function (msg) {
  15.                 if (msg) {
  16.                     $('#myForm').trigger("submit", [true]); 
  17.                 }
  18.                 else {
  19.                     helpers.setCaptcha("captcha");
  20.                 }
  21.             },
  22.             error: function (req, status, error) {
  23.                 alert("error: " + error);
  24.                 helpers.setCaptcha("captcha");
  25.             },
  26.         });
  27.     }
  28. });
Theoretically this should work but no...

Can you have any idea?

Thanks in advance