jQuery delete confirmation box

前端 未结 9 972
粉色の甜心
粉色の甜心 2020-12-24 11:26

In my jQuery am displaying my results in a table formatted output, a part of my jQuery is



        
9条回答
  •  离开以前
    2020-12-24 12:07

    You need to add confirm() to your deleteItem();

    function deleteItem() {
        if (confirm("Are you sure?")) {
            // your deletion code
        }
        return false;
    }
    

提交回复
热议问题