Home >Web Front-end >JS Tutorial >jquery delete prompt box pops up dialog box whether to delete_jquery

jquery delete prompt box pops up dialog box whether to delete_jquery

WBOY
WBOYOriginal
2016-05-16 17:04:571369browse
Copy code The code is as follows:

/**
* Delete draft
*/
function deleteDraft(the ,id){
$.messager.confirm('Delete draft reminder', '
Are you sure you want to delete this draft?

',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();
}
}
});
}
});
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn