Mengatasi Event Close Tidak Berfungsi di Dialog jQuery
$( "#konfirmasi" ).dialog({
autoOpen: false,
resizable: false,
height:180,
modal: true,
hide: 'Slide',
buttons: {
"Hapus": function() {
var del_id = {id : $("#del_id").val()};
$.ajax({
type: "POST",
url : "/abby/index.php/home/delete",
data: del_id,
context: $(this),
success: function(msg){
$(this).dialog('close');
$('#show').html(msg);
}
});
},
Batal: function() {
$( this ).dialog( "close" );
}
},
close: function() {
}
});
solusinya :
Ganti
$(this).dialog('close'); menjadi
$(this).dialog('close').remove();
EmoticonEmoticon