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
Release: 2016-05-16 17:04:57
Original
1367 people have browsed it
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();
}
}
});
}
});
}
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template