title: $.ajax() methods data
body: <p>I have some div tags which onchange I want to insert the new value into my database.
  As people suggest, I'm using <code>$.ajax POST</code> to insert. Since I'm new to JQuery and Ajax, I don't what actually that data and msg in $.ajax()..Please explain how to insert my value into a database asynchronously (on the Fly)</p>
  
  <pre><code>            $(".div"+increment).change(function(){
                     $.ajax({
                       type: "POST",
                       url: "./server",
                       data: "name=John&amp;location=Boston",
                       success: function(msg){
                       alert( "Data Saved: " + msg);
                            }
                  })
  
  
                 });
  </code></pre>