Jquery delete prompt box pops up whether to delete the dialog box
- 2020-03-30 01:15:08
- OfStack
function deleteDraft(the,id){
$.messager.confirm(' Delete draft reminder ', '</br> Are you sure to delete this draft ?</br></br>',function(r){
if(r){
$.ajax({
type : "post",
url : "http://localhost:8090/webplus3/_web/sns/delBlog.do?_p=YXM9Mw__&id=" + id,
success : function(data) {
if(data == "success") {
$(the).parents("li").remove();
parent.initDraft();
}
}
});
}
});
}