title: Adding POST parameters before submit
body: <p>I've this simple form:</p>
  
  <pre><code>&lt;form id="commentForm" method="POST" action="api/comment"&gt;
      &lt;input type="text" name="name" title="Your name"/&gt;
      &lt;textarea  cols="40" rows="10" name="comment" title="Enter a comment"&gt;
      &lt;/textarea&gt;
      &lt;input type="submit" value="Post"/&gt;
      &lt;input type="reset" value="Reset"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I need to add two POST parameters before send to the server:</p>
  
  <pre><code>var params = [
                 {
                   name: "url",
                   value: window.location.pathname
                 },
                 {
                    name: "time",
                    value: new Date().getTime()
                 }
               ];
  </code></pre>
  
  <p>without modifying the form, please.</p>