title: jQuery create object from form fields
body: <p>How can I create a object with a form's fields and values?</p>
  
  <p>like this one:</p>
  
  <pre><code>{
    fields:
     {
        name: 'foo',
        email: 'foo@moo.com',
        comment: 'wqeqwtwqtqwtqwet'     
  
     }
  }
  </code></pre>
  
  <p>assuming the form looks like this:</p>
  
  <pre><code>&lt;form&gt;
    &lt;input type="text" name="name" value="foo" /&gt;
    &lt;input type="text" name="email" value="foo@moo.com" /&gt;
    &lt;textarea name="comment"&gt;wqeqwtwqtqwtqwet&lt;/textarea&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I need to know how can I do this for any form with a single function, not just a particular form.</p>