title: How can I send the value of the id through ajax and PHP
body: <p>I want to pass value of the id of the product to cart.php by using AJAX and display it in a div.cart in index.php but I have no idea how. please help.</p>
  
  <p>
  </p>
  
  
  Product
  <p>Product Description</p>
  Add to Cart
  
  
  <pre><code>$('a').on('click', function(e){
     $.ajax({
              url: 
              data:
           })
     e.preventDefault();
  });
  </code></pre>