<p>An easy jQuery question.</p>

<p>I have several identical forms ( except their name ) on one page with a few hidden inputs in each. I want to refer to them by using the form name and  then the input name. ( the input names are not unique in my page )</p>

<p>So for instance: </p>

<pre><code>var xAmt = $('#xForm'+num).('#xAmt');
</code></pre>

<p>I really want to supply these values to an AJAX POST</p>

<pre><code>    $.ajax({
      url: "X.asp",
      cache: false,
      type:  "POST",
      data:  "XID=xID&amp;xNumber=xNum&amp;xAmt=xAmt",
</code></pre>

<p>...</p>

<p>If I can get the values in the AJAX call even better.</p>

Looks like you want
```
formSerialize()
```
(or even
```
ajaxSubmit()
```
) from the
jQuery forms plugin
.