<a class="btn btn-mini" href="#" data-hash="<?=$hash?>" data-buy-url="<?=$part['buy_url']?>" class="buy-link" rel="nofollow">
$('.buy-link').click(function(){
var self = $(this)
$.ajax({
type: "GET",
url: add2cart(self.attr("data-buy-url"),self.attr("data-hash")),
dataType: "html",
success: function(out){
$("#bid").html(getBasketHTML(out));
}
});
return false;
});