I’m learning CodeIgniter 3 and I want to add a confirm dialog before deleting a row in the database table. I’ve made the delete function but couldn’t figure out how to add a confirm dialog box using SweetAlert2. code in view code in controller code in model Answer Here is a simple integration, try and let me know
Tag: sweetalert2
How can i make if else condition inside sweetalert2 swal.fire?
My table has relationship with other field table(Constraint foreign key), so when this delete button click. it will show sweet alert that the data cannot be delete if they connected. Here my code &…