title: Blog post comment without page refresh (ajax)
body: <p>I'm trying to make comments on my page just like the ones in wordpress. When you press post comments your page updates without reload. How can I do that? </p>
  
  <p>I understand I have to use jquery post, and I've had several attempts but for some reason my web page keeps reloading. I have a form like this :</p>
  
  <pre><code>&lt;form name="postForm" id="postForm" action="addComments.php" method="post"&gt;
  &lt;textarea name="commentContent"&gt;&lt;/textarea&gt;
  &lt;input type="submit" name="commentButton" id="commentButton"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I tried <code>$("#commentButton").click(function()</code> do something .. but I still get the page reload. I mean I have the php part ready, working with page reload like an ordinary form just fine, just I'd like to learn and do this without page reload. Any idea how can I make this happen?</p>