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="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/6.11.4/sweetalert2.all.min.js"></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:





Related Post

Our team section layout design in bootstrap

Our team section layout design in bootstrap

Ready Code of Our team section layout design in bootstrap css framework

Read More
Bootstrap round shape step by step wizard

Bootstrap round shape step by step wizard

Simple Step by step tab using css and Bootstrap framework

Read More
How to create custom with stylish bootstrap step tabs

How to create custom with stylish bootstrap step tabs

Bootstrap step example using custom js and css with stylish design. you can g...

Read More

Random Post