title: How to use jQuery .ajax to my form's action
body: <p>I changed my coding style for php and jQuery, but my Registration </p>
  
  <pre><code>$("#reg_form_company").bind("submit", function() {
      $.fancybox.showActivity();
      $.ajax({
              type     : "POST",
              cache    : false,
              url      : $(this).attr('action'),
              data     : $(this).serializeArray(),
              success  : function(data) {
                  $(".printArea").empty().append(data).css('visibility','visible');
              }
      });
      return false;
  });
  </code></pre>
  
  <p>Then this is my Form</p>
  
  <pre><code>&lt;form id="reg_form_company" action="index.php?module=register&amp;actionregister" method="post" &gt;
        &lt;input&gt;[...]&lt;/input&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Then after clicking the "Submit" button, it doesn't work, I assume that somebody can help me to solve this problem, coz the $.ajax might confuse about POST(for inputs) and the GET(for the parameters of the "action" form)</p>
  
  <p>I appreciate for your help, you can also modify the entire jQuery code if it's required.</p>
  
  <p>Sorry guys for not including the #reg_form_company, and the fancybox</p>