How to serialize a form into an object with jQuery?
<p><code>$('form').serialize()</code> will generate something like <code>a=1&amp;b=2</code>,but what I want to get is <code>{a:1,b:2}</code>.</p>

<p>How to do this?</p>

<p>Further more,is it possible to do this kind of job to arbitrary container like <code>div</code>?</p>
