title: multiple forms with same submit function
body: <p>I have multiple forms for lots of products on my page and want to use this submit code for all of them:</p>
  
  <pre><code>$('#myform').submit(function() { 
      var queryString = $(this).formSerialize(); 
  
  alert(queryString);
  $.ajax
              ({
                  type: "POST",
                  url: someurl,
                  dataType: "jsonp",
                  contentType:"charset=utf-8",
                  data: queryString
  
               });
      return false; 
  }); 
  </code></pre>
  
  <p>This works with an id like #myform, however it doesn't work with a class.(only works on first form on page) I would rather not give each form a unique id.</p>
  
  <p>Even if I had Ids for all the forms I would need to add alot of jquery code to make it work dynamically.</p>