我的網頁刪除表中的一行並將其自動保存在數據庫中。點擊刪除按鈕後,我需要一個messageBox
,兩個按鈕「保存」和「否」。在JSP 刪除功能低於:添加「保存」或「否」的提醒框
function deleteFileRow(rowCount)
{
$.ajax(
{
url: 'deleteRow.htm?rowIndex='+rowCount+"&action=delete&id="+${id},
success: function(data)
{
document.location.reload();
}
});
}
請幫我做這個。
你爲什麼不去[jquery alert](http://jqueryui.com/dialog/)? – NINCOMPOOP
或者你可以使用簡單的確認框:http://stackoverflow.com/questions/4292455/javascript-confirm-dialog – Cherniv
但我相信'確認'框中的標籤可能無法定製! – NINCOMPOOP