Guest User

Untitled

a guest
Jul 17th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. $("#downloadButton").click(function () {
  2. var title = $("#productName").val();
  3. var description = $("#productDescription").val();
  4. var price = $("#productPrice").val();
  5. var urlImage = $("#productUrl").val();
  6. $.ajax({
  7. url: "/api/productgallery/",
  8. method: "POST",
  9. data: JSON.stringify({ title: title, description: description, price: price, urlImage: urlImage }),
  10. contentType: "application/json; charset=utf-8",
  11. success: function (result) {
  12. loadGallery("tblProductGallery", function () {
  13. });
  14. }
  15. })
  16. });
  17.  
  18. <div class="col-4 productCard" id="pCard15">
  19. <img class="image" src="ссылка">
  20. <h1 class="titleText">123</h1>
  21. <p class="descriptionText">123</p>
  22. <p class="priceText">321$</p>
  23. <button class="btn btn-success changeProduct" id="changeProduct">Change Product</button>
  24. </div>
Add Comment
Please, Sign In to add comment