sweet alert validation code example Example: confirm sweet alert swal("Are you sure?", { dangerMode: true, buttons: true,});