更新及;使用php重新加载mysql-删除确认问题
当我提交它要求确认时,我试图删除代码位,但不起作用 我想提交,它的更新没有被要求更新及;使用php重新加载mysql-删除确认问题,php,Php,当我提交它要求确认时,我试图删除代码位,但不起作用 我想提交,它的更新没有被要求 $('body').on("change",'.guests_left',function(){ var value = $(this).val(); var id = $(this).data("id"); var location = 'updateLeftGuests.php?sheet_id='+id+'&gue
$('body').on("change",'.guests_left',function(){
var value = $(this).val();
var id = $(this).data("id");
var location = 'updateLeftGuests.php?sheet_id='+id+'&guests_left='+value;
var txt;
var r = confirm("This will change remaining guests, Are you sure?");
if (r == true) {
window.location.href = location;
} else {
location.reload();
}
});
}
} );
</script>
$('body')。on(“change”,'guests_left',function(){
var值=$(this.val();
var id=$(this.data(“id”);
var location='updateLeftGuests.php?sheet_id='+id+'&guests_left='+value;
var-txt;
var r=确认(“这将改变剩余的客人,你确定吗?”);
如果(r==true){
window.location.href=位置;
}否则{
location.reload();
}
});
}
} );
改用这个:
$('body').on("change",'.guests_left',function(){
var value = $(this).val();
var id = $(this).data("id");
var location = 'updateLeftGuests.php?sheet_id='+id+'&guests_left='+value;
var txt;
window.location.href = location;
});
所以删除
var r=confirm(“这将改变剩余的来宾,你确定吗?”)代码>并修复以下问题(如果愿意提供帮助!)!请接受我的回答;)(按下我答案旁边的检查按钮)