Skip to content Skip to sidebar Skip to footer

Sweetalert Package And Jquery Submit() Not Working Correctly

Using sweetalert library. Here's my form:
).on('click',function(e){ e.preventDefault(); var form = $(this).parents('form'); swal({ title: "Are you sure?", text: "blablabla!", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Yes, delete it!", closeOnConfirm: false }, function(isConfirm){ if (isConfirm) form.submit(); });

})

I think this will give you the right value.

Hope it helps

Post a Comment for "Sweetalert Package And Jquery Submit() Not Working Correctly"