jQuery Modal を使用するように確認を変更したいので、モーダル削除の確認を行いました。これが私のものです:
$('.stdelete').live("click", function() {
var ID = $(this).attr("id");
var uid = $("#uid").val();
var dataString = 'msg_id='+ ID + '&uid=' + uid;
if (confirm("Sure you want to deletes this update? There is NO undo!")) {
$.ajax({
type: "POST",
url: "delete_message_ajax.php",
data: dataString,
cache: false,
success: function(html) {
$("#stbody"+ID).slideUp();
}
});
}
誰にもアイデアがありますか?助けてくれてありがとう。