title: jquery ajax multiple form submission
body: <p>need a little help.  My jQuery was going smooth today until I hit a wall.  I am trying to have multiple forms (individual line items) editable on the fly via AJAX, with a text submission link or some kind of submit button. Problem is, I can get it to submit the form via the AJAX, but without any of the data from the form... i.e. hit submit, it sends the request, but no querystring.  Can someone please help me identify what's missing?</p>
  
  <p>Here is my jquery:</p>
  
  <pre><code>        $('.submitLineChanges').click(function() {
              var formID = $(this).closest('form').attr('ID')
              datastring = $(formID).serialize();
              $.ajax({
                      type:'POST', 
                      url: 'update_ajax.asp', 
                      data: datastring,
                      success: function(response) {
                          alert("Success " + id)
                      //$('#ContactForm').find('.form_result').html(response);
                  }//end ajax options
              });//end ajax
              return false;
          });//end of click function
  </code></pre>
  
  <p>And my form:</p>
  
  <pre><code>    &lt;form id="line-item-&lt;%= intRecID %&gt;-form" class="submitLineForm"&gt;
          &lt;input type="hidden" name="UpdateLineItem" value="true" /&gt;
          &lt;span class="edit" id="edit-line-&lt;%= intRecID %&gt;" style="display: none;"&gt;
              &lt;span class="quantity"&gt;&lt;input name="part_qty" id="part_qty_&lt;%= intRecID %&gt;" type="text" value="&lt;%=FormatNumber(rs("quote_part_qty"),0)%&gt;"&gt;&lt;/span&gt;
              &lt;span class="partno"&gt;&lt;input name="part_no" id="part_no_&lt;%= intRecID %&gt;" type="text" value="&lt;%=rs("quote_part_id")%&gt;"&gt;&lt;/span&gt;
              &lt;span class="descrip"&gt;&lt;Textarea name="part_descrip" type="text" id="descrip&lt;%= intRecID %&gt;" rows="3"&gt;&lt;%=rs("quote_part_descrip")%&gt;&lt;/Textarea&gt;&lt;/span&gt;
              &lt;span class="sellprice"&gt;$&lt;input name="part_sale" id="part_sale_&lt;%= intRecID %&gt;" type="text" value="&lt;%=FormatNumber(rs("quote_part_sale"),2)%&gt;"&gt;&lt;/span&gt;
              &lt;span class="margin" id="emargin_&lt;%= intRecID %&gt;"&gt;&lt;%=margin%&gt;&lt;/span&gt;
              &lt;span class="cost"&gt;&lt;strong&gt;Cost: &lt;/strong&gt;$&lt;input name="part_cost" id="part_cost_&lt;%= intRecID %&gt;" type="text" value="&lt;%=FormatNumber(cost,2)%&gt;"&gt;&lt;/span&gt;
              &lt;span class="wt"&gt;&lt;strong&gt;Weight: &lt;/strong&gt;&lt;input name="part_wt" id="part_wt_&lt;%= intRecID %&gt;" type="text" value="&lt;%=FormatNumber(rs("quote_part_wt"),2)%&gt;"&gt;&lt;/span&gt;
              &lt;span class="update"&gt;&lt;input type="button"  value="Save Changes" class="submitLineChanges" /&gt;&lt;/span&gt;
          &lt;/span&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>As you should be able to tell, I'm running this in ASP. The form is for each line item in a cart basically.  Because of the nature of the page, I don't want to have a separate page to edit all the info.  It seems this should work, but its likely I'm missing something through the tunnel vision I'm in now.</p>
  
  <p>I should note, the form is for each line, I don't need it to submit all the forms, just the one.</p>
  
  <p>Thanks</p>