use sweetalert in jquery code example Example: how to use sweetalert <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>