Hi guys, welcome back to Angga Risky, In this video I want to show you about How to install the Sweet Alert a JavaScript library that help you to create a beautiful alert with many events on jQuery. Sweet Alert 2 is free, so you can use this library for your project.
Download Sweet Alert 2:
https://limonte.github.io/sweetalert2/
http://www.jsdelivr.com/projects/sweetalert2
Download jQuery CDN:
https://code.jquery.com/
Thank you for Sweet Alert 2 and jQuery CDN 🙂
Follow Me ==========================================
facebook : @anggariskys
twitter: @anggariskys
google+: plus.google.com/+anggariskysetiawan
instagram: anggariskysetiawan
website: www.anggarisky.com
blog: www.anggarisky.com/en/blog
Original source
5 responses to “How to Use Sweet Alert 2 | JavaScript Tutorial”
Hi Sir! Can I ask something? It's about sweet alert, how to create an alert where it will redirect you to another page after clicking Ok button. I have done it but it is redirecting so fast without clicking Ok button. Sorry for bad english 🙂
Hi Angga, do you have a video tutorial on delete method with sweetalert? eg scenario: user click on yes then it will delete data, if no, it will return to view mode page.
What does the swal function returns? What parameter do i need to catch to know if the user pressed which button?
thanks for the video bro, really helpful!
do we need jQuery to run sweetalerts2?
i don't know why my code is not working…