Jump to content

sali1101

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by sali1101

  1. I am trying to create a cart system using jquery. I want to show the div called "product" inside the div called "cart" if the checkbox inside the .product is selected. But bear inmind that only the div.product inwhich the checkbox is checked should be shown in .cart not all the divs called .product. I tired using the jquery append function but i moves all the .product divs to the cart even if 1 of them is selected. My html is as follows : <div class="product-list"> <div class=" product Earrings "> <div class=" product-info"> <input type="checkbox" name=" E45" value="1000"> <div class=" product-name "> Product 1 </div> <div class="product-price"> Rs 1500 </div> </div> </div> <div class=" product Earrings "> <div class=" product-info"> <input type="checkbox" name=" E46" value="1000"> <div class=" product-name "> Product 2 </div> <div class="product-price"> Rs 1300 </div> </div> </div> </div> <div class="cart"> Show products in here ... </div>
×
×
  • Create New...