#2
winners2012-02-14 18:58
|
<div href="'.$id.'" class="getTel">点此查看联系方式</div>
JS文件:
$('.getTel').click(function(){
var re = confirm("查看一次,将扣除10点积分,确认查看吗?");
if(re == true)
var gettel = $(this).attr('href');
$.ajax({
type: "POST",
url: "member/ytajax.php",
data: "action="+gettel,
success: function(msg){
alert(msg);
}
});
});
我想让变量gettel传入值。请大师提点一二、不胜感激。