$(".left_bt").click(function () { var prodDetailID = $("[id*=lblProductID]", $(this).closest("div")).html(); var keyName = $("[id*=lblKeyName]", $(this).closest("div")).html(); var eshopPrice = $("[id*=lblEShopPrice]", $(this).closest("div")).html(); //var ProductDetails = "("+ prodDetailID +")" + keyName + "/" + eshopPrice; var ProductDetails = "(" + prodDetailID + ")" + keyName +"\r\n" ; var InitialValue = $("[id*=lblShopProdID]").text()+"\r\n"; var EshopTotalAmount; if (InitialValue == "No Product Selected") { $("[id*=lblShopProdID]").text(ProductDetails)+"\r\n"; alert("Product Detailed: " + ProductDetails + " added successfully to cart"); } else { var newInitialValue = $("[id*=lblShopProdID]").text() + "\r\n";; $("[id*=lblShopProdID]").text(newInitialValue + "\r\n" + ProductDetails); alert("Product Detailed: " + ProductDetails + " added successfully to cart"); } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)