Commit 4027a87e authored by liuzheng712's avatar liuzheng712

user delete with alert confirm

parent 84992746
......@@ -99,6 +99,7 @@
$(document).ready(function(){
$('.del').click(function(){
var row = $(this).closest('tr');
if (confirm("确定删除")) {
$.get(
$(this).attr('value'),
{},
......@@ -106,7 +107,7 @@
row.remove();
alert(data);
}
)
)}
});
$('#del_btn').click(function(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment