title: POST values from inline edit
body: <p>I used this code from
  <a href="https://stackoverflow.com/questions/11882693/change-table-cell-from-span-to-input-on-click">Change table cell from span to input on click</a>-
  The replace one for inline edit now i want to post values through ajax and i am not sure how.
  I just want to post the comments the users have edited and update them on the database
  This is how i got so far:</p>
  
  <pre><code>$.ajax({
          type: "POST",
          url: "comments.php",//to update the comments
          data: "data"
  
                  });
  </code></pre>
  
  <p>Not sure what to put next. Is it possible to post values when user click out of input area? and does the data have to be <code>serialize</code>?<br>
  Thanks in advance!</p>