i have a simple php form, on form submit i want to display sweet alert, i did the following code: howerver sweetalert doesnt show up after formsubmit, can anyone please tell me what is wrong in here, thanks in advance Answer Because your body is empty and sweetalert append your code to empty body & you go…
Tag: sweetalert
Confirm delete using sweetalert in Laravel Form Collective
I’m a beginner in using laravel, please help. I’m using sweet alert to ask for confirmation before deleting. The error says that it is missing a required parameter for destroy, though I am certainly sure that I am passing an id to the function destroy. Here’s my code Announcement.blade.php d…
How to alert success message in modal form?
I’m new to ajax/jquery. I want to use sweetalert on my website, i set it up as in tutorial, but when i open modal form and click send button, it goes to another page, page send.php. Here my form: inside this form sweetalert doesn’t work, but outside of form it’s working. Here sweetalert jque…
Sweet Alert Delete Confirmation with a href
Im using PHP, and Sweet alert for a delete confirmation. Problem is that it is deleting before showing the sweet alert. This is my HTML(which is using PHP in it). This is my sweet alert } The problem is, its not showing the sweet alert, its just going straight to the URL. Do I need to do a form and
How to use date time picker in sweet alert?
This is my code i am working on swal({ title: “Confirm details?”, text:”, type: “…
Delete method with Sweet Alert in Laravel
I’m testing a method using Sweet Alert, to improve the messages issued by the Javascript alert method with the laravel framework. 1 – I downloaded the files sweetalert.css and sweetalert.min.js. 2 – So I connect the files from app.blade.php 3 – I created the delete button using the onc…