In this example we ask before delete any things. we use bootstap with sweetalert js. we create here one example like you click on button thrn one alert open and it will ask you can you delete ? delete this. if you select yes then open next alert for success message.

you can get code of react sweetalert snippet. we give you example of sweet-alert-confirm , you can simple copy bellow code and use in your project. If it free snippets of sweet alert html So you have to simple get those bellow code from tab of html, css and js. you simple click on HTML Code then you will get html code sweet alert bootstrap theme snippets, click on JS Code tab get code of jquery codd for sweet alert bootstrap example snippets, same as for CSS Code tab. It's pretty easy and simple example of sweet alert bootstrap button snippet.

<!DOCTYPE html> <html> <head> <link rel="stylesheet" href=""> <script src=""></script> <script src=""></script> </head> <body> <div class="container text-center"> <br><br><br> <button class="delete-photo btn btn-success btn-lg">Sweet Alert Try</button> </div> </body> </html>
$('button.delete-photo').click(function() { swal({ title: 'Are you sure?', text: "You won't be able to revert this!", type: 'question', showCancelButton: true, cancelButtonColor: '#3085d6', confirmButtonColor: '#d33', confirmButtonText: 'Yes, delete it!' }).then(function () { swal( 'Deleted!', 'Your file has been deleted.', 'success' ) }) });

Please Subscribe Your Email Address, We Will Notify You When Add New Snippet:

Random Post

Random Blog