title: jquery, send a form by staying on the same page
body: <p>I want to send a form without leaving my current page, so I'm using:</p>
  
  <pre><code>$('.myForm').on('submit', function(){
          $.ajax({
              url: $(this).attr('action'),
              type: $(this).attr('method'),
              data: $(this).serialize(),
              success: function(html) {
              alert('ok');
              }
          });
      return false; 
  });
  </code></pre>
  
  <p>but it doesn't work... any idea please?</p>