I have a delete button where on clicking the button i want a dialog box to pop up and then on clicking ok it should do the Ajax call else shouldnt do anything. here is Code
$('.comment-delete').click(function () {
var deleteID = $(this).attr('id');
$.ajax({
url: "account/deleteComment/" + deleteID,
success: function () {
$("#comment-"+deleteID).slideUp("fast");
}
});
return false;
});
1 Answer