title: add item to cart jquery function
body: <p>my php create each product by echo on the end is </p>
  
  <pre><code>&lt;form name="addToCartForm"&gt;
  &lt;input type="hidden" id="inputid" value="'.$id.'"/&gt;
  &lt;input type="submit" id="submitbutton" value="Add to cart"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>on the website usually is created 10 products dynamicly</p>
  
  <p>So I have 10 buttons with same class or id for each product displayed by php</p>
  
  <p>any idea for a function to send data to cart.php file by post (jquery) without refreshing website.
  I must send proper id of product in $_POST so cart.php know what have been added.</p>
  
  <p>AND WHY when I added</p>
  
  <pre><code>$(document).ready(function(e) {
      $('#submitbutton').click(function(e) {
          var pos = $('#inputid').val();
          alert(pos);
          return false;
      });
  });
  </code></pre>
  
  <p>it is working to alert just first button ADD to CART not all</p>
  
  <p>I am new to jquery:)please help</p>