Jquery and multiple forms on a page
<p>I have a several forms that are output from a database on the same page. It works fine when I don't use ajax. When I use Jquery it will only work for the first form. Could anyone point me in the right direction please?</p>

<p>Jquery.....</p>

<pre><code>$('.updateSubmit').live('click', function() {
  var id = $('.id').val();
  var hardSoft = $('.hardSoft').val();
  var brand = $('.brand').val();
  var subCat = $('.subCat').val();
  var subSubCat = $('.subSubCat').val();
  var tProduct = $('.tProduct').val();
  var description = $('.description').val();
  var quantity = $('.quantity').val();
  var price = $('.price').val();
  var tCondition = $('.tCondition').val();
  var featured = $('.featured').val();


  var theData = 'id=' + id + '&amp;hardSoft=' + hardSoft + '&amp;brand=' +
  brand + '&amp;subCat=' + subCat +
  '&amp;subSubCat=' + subSubCat + '&amp;tProduct=' + tProduct
  +'&amp;description=' + description +
  '&amp;quantity=' + quantity + '&amp;price=' + price + '&amp;tCondition=' +
  tCondition + '&amp;featured=' + featured;


  $.ajax ({
    type: 'POST',
    url: '/updateGrab.php',
    data: theData,
    success: function(aaa) {
      $('.'+id).append('&lt;div class="forSuccess"&gt;'+aaa+'&lt;/div&gt;');
    } // end success
  }); // end ajax

  return false;

}); // end click
</code></pre>

<hr>

<p>and my php form......</p>

<pre><code>while ($row = $stmt-&gt;fetch()) {

echo " &lt;form action='http://www.wbrock.com/updateGrab.php'
method='post' name='".$id."'&gt;

&lt;input type='hidden' class='id' name='id' value='".$id."' /&gt;

Hardware/Software
&lt;input type='text' class='hardSoft' name='hardSoft'
value='".$hardSoft."' /&gt;

Brand
&lt;input type='text' class='brand' name='brand' value='".$brand."' /&gt;

Sub-category
&lt;input type='text' class='subCat' name='subCat'
value='".$subCat."' /&gt;

Sub-Sub-Cat
&lt;input type='text' class='subSubCat' name='subSubCat'
value='".$subSubCat."' /&gt;

Product
&lt;input type='text' class='tProduct' name='tProduct'
value='".$tProduct."' /&gt;

Description
&lt;input type='text' class='description' name='description'
value='".$description."' /&gt;

Qty
&lt;input type='text' class='quantity' name='quantity'
value='".$quantity."' /&gt;

Price
&lt;input type='text' class='price' name='price' value='".$price."' /&gt;

Cond
&lt;input type='text' class='tCondition'
name='tCondition'value='".$tCondition."' /&gt;

Featured
&lt;input type='text' class='featured' name='featured'
value='".$featured."' /&gt;


&lt;input type='submit' id='".$id."' class='updateSubmit'
name='updateSubmit' value='Update' /&gt;

&lt;/form&gt;

&lt;span class='".$id."'&gt;&lt;/span&gt;

"; // end echo

} // end while loop from database
</code></pre>

<hr>
