提前感谢工作的帮助:不能得到点击()函数,在jQuery的
此功能在从第一次点击功能股利下降罚款,但不会承认第二卡功能以任何身份任何。
我甚至可以根据需要激活第一次点击功能。
我错过了什么?我把这件事撕成碎片。
$('span[rel="confirm"]').click(function() {
$('.confirmbox').remove();
targetpath = $(this).attr("targetpath");
dbid = $(this).attr("dbid");
$(this).after('<div><span class="closeout">X</span>   Are you sure you want to <a href="index.php?cmd=deletesample&id=' + dbid + '&filetarget=' + targetpath + '">delete?</a></div>');
$('.confirmbox').show(200);
});
$('.closeout').click(function() {
$('.confirmbox').css('background-color', 'green');
});
+1欢迎堆栈溢出,@ user257878 – Sampson 2010-02-10 03:06:18