jquery模式对话框、按钮、重定向到链接、在jquery/js中传递php变量

jquery模式对话框、按钮、重定向到链接、在jquery/js中传递php变量,php,javascript,jquery,modal-dialog,Php,Javascript,Jquery,Modal Dialog,链接必须传递php变量。我试过这样的方法: “删除”: 函数(){ window.location=“delete_content?id=“$idC 而且 $("#modal_confirmation").dialog({ autoOpen: false, bgiframe: true, resizable: true, width:500, modal: true,

链接必须传递php变量。我试过这样的方法: “删除”:

函数(){ window.location=“delete_content?id=“$idC

而且

$("#modal_confirmation").dialog({
            autoOpen: false,
            bgiframe: true,
            resizable: true,
            width:500,
            modal: true,
            overlay: {
                backgroundColor: '#000',
                opacity: 0.5
            },
            buttons: {
                             'Delete': function() {
                            //HERE I HAVE TO PUT A LINK TO GO TO A URL*
                                   $(this).dialog('close');
                             },
                            'Cancel': function() {
                    $(this).dialog('close');
                }

            }
        });
我还尝试访问html/php上的href属性,但没有成功

delete_content.php?id=SOME NUMBER.
在表格上:

delete_content.php?id=SOME NUMBER.
buttons: {
     'Delete': function() {
     **var linkToRedirect = document.getElementById('completeLink').value;
     window.location = linkToRedirect;**
     $(this).dialog('close');
},