SweetAlert

<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>
$(function() {
$('.delete').click(function(e){
e.preventDefault()
swal({
title: "Anda yakin?",
icon: "warning",
buttons: true,
dangerMode: true,
})
.then((willDelete) => {
if (willDelete) {
$(e.target).closest('form').submit()
}
});
});
});
</script>