title: What is the Diff between type and method in ajax
body: <p>HI i have used both the things in my experience 
  i was thinking method and type both are <strong>POST</strong> and <strong>GET</strong> methods.</p>
  
  <blockquote>
    <p>But seems like they are not similar.?</p>
  </blockquote>
  
  <p>if i use <code>type</code> it is working i am <code>serializeing</code> a form data..</p>
  
  <p>if i write <code>method</code> it is not working can can anyone explain what is the diff between them..?</p>
  
  <pre><code>$.ajax({
    url: "controller.php",
    type: 'POST',
    method: "POST",
    dataType: "json",
  });
  </code></pre>
  
  <p>help is appropriated.</p>