<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.2.3/jquery-confirm.min.js"></script>
var el = document.getElementsByClassName("cancel"); for (var i = 0; i < el.length; i++) { el[i].addEventListener('click', function (e) { $.confirm({ animation: 'zoom', closeAnimation: 'scale' }); e.preventDefault(); }); }
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
getElementsByClassName
jquery-confirm.js
<script>
~/Scripts/...
<script src="<%= ResolveClientUrl("~/Scripts/jquery-confirm.js") %>"></script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)