add-cart-style-list add-cart-style-grid add-cart random-add-cart click

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
$('.add-cart-style-list,.add-cart-style-grid,.add-cart,.random-add-cart').click(function(){
var tid = $(this).attr("tid");
$.ajax({
type: "POST",
url: "/include/addtocart.php",
data: "id="+tid,
dataType: "html",
cache: false,
success: function(data) {
loadcart();
}
});
});