title: How to get and replace data from form serialize() before submitting?
body: <p>I need to submit a form using jQuery but before it's submitted I want to change the value of one of the form fields <em>without</em> showing the change to the user. I know it's not the best way but my software demands that.</p>
  
  <p>Currently I use:</p>
  
  <pre><code>var submit = $("#submitform").serialize();
  </code></pre>
  
  <p>To serialize data and then submit them using </p>
  
  <pre><code>$.post('/post', submit)
  </code></pre>
  
  <p>The serialized data I have are:</p>
  
  <pre><code>entry%5Bbody%5D=hello+and+welcome&amp;addedContexts=presentation&amp;context=prese ntation&amp;selectedContexts=&amp;statementid=&amp;timestamp=
  </code></pre>
  
  <p>I simply want to change the value of <code>entry%5Bbody%5D</code> to something else.</p>
  
  <p>I know I could use Regex on the string (I can't find which?), but maybe you know of a more elegant solution? Such as first serializing the form, then deserializing it, changing the value I need, and serializing it again?</p>
  
  <p>Thanks!</p>