Php jconfirmation和ajaxpost

Php jconfirmation和ajaxpost,php,jquery,ajax,Php,Jquery,Ajax,我无法将JConfirmation与以下代码进行比较: <script type="text/javascript"> $(function () { $(".delbutton").click(function () { //Save the link in a variable called element var element = $(this); //Find the id of the link that was c

我无法将JConfirmation与以下代码进行比较:

<script type="text/javascript">
$(function () {
    $(".delbutton").click(function () {
        //Save the link in a variable called element
        var element = $(this);
        //Find the id of the link that was clicked
        var del_id = element.attr("id");

        //Built a url to send
        var info = 'id=' + del_id;
        if (confirm("Sure you want to delete this update? There is NO undo!")) {
            $.ajax({
                type: "GET",
                url: "ajax_delete.php",
                data: info,
                success: function () {

                }
            });
            $(this).parents(".record").animate({
                backgroundColor: "#fbc7c7"
            }, "fast")
                .animate({
                opacity: "hide"
            }, "slow");
        }
        return false;
    });
});
</script>
<script type="text/javascript">
    $(document).ready(function() {
        $('.ask-custom').jConfirmAction({question : "Usunąć ?", yesAnswer : "Tak", cancelAnswer : "Nie"});
    });
</script>
有什么提示吗?
致以最诚挚的问候。

尝试更改您的
ajax
请求:

$.ajax({
                type: "GET",
                url: "ajax_delete.php",
                data: {id:del_id},
                success: function () {

                }
            });

所以错误是什么?没有错误,只是我不知道如何比较这两个脚本。我试图将“if(confirm..”更改为jconfirmation,但我做错了:(这可能是两个不同的库,有两个不同的故事没有。我想知道如何将“if confirm”更改为“$”(“.询问自定义”)。jconfirmation“无任何更改。当我单击“确认”时,仍然没有更改任何内容。
$.ajax({
                type: "GET",
                url: "ajax_delete.php",
                data: {id:del_id},
                success: function () {

                }
            });