몇 가지 이상한 이유로 저는 두 번 확인 상자가 나타납니다. 여기 내 코드는 다음과 같습니다.jQuery/Javascript 확인이 두 번 올 것입니다
$(".DeleteComment").live("click", function(){
var CommentID = $(this).attr("rel");
var confirm
if (!confirm('Are you sure you want to permanently delete this comment?')){
return false;
}else{
$(this).html("loading").css("color", "#999");
//AJAX HERE
return false;
}
});
아차, 시도를 제거, 운이. – Adam