ASP.NET MVC - how to make users confirm the delete

来源:互联网 发布:中铁一局集团网络学校 编辑:程序博客网 时间:2024/06/10 09:49

http://stackoverflow.com/questions/2537463/asp-net-mvc-how-to-make-users-confirm-the-delete

Simply add the following to the head of your page:

<script type="text/javascript">    $(document).ready(function(){        $("input[name='deleteall']").click(function() {            return confirm('Delete all selected elements?');        });    });</script>

0 0
原创粉丝点击