title: Javascript-POST not working
body: <pre><code>  onSubmit: function(invalid, e) {
      e.preventDefault();
      if(!invalid)
      {
          alert("test");
          $.post('login.php', this.$form.serialize(), function(response) {
      // asdasd
    }, 'json');
      }
     }
  </code></pre>
  
  <p>I get the alert box but the post doesn't seem to work. Is there anything clearly wrong in the above code?</p>
  
  <p>I am using IdealForms.</p>