3/31/2017 - 4:50 PM

sweet Alert for Bootstrap

sweet Alert for Bootstrap

the CSS:

the JS:

1) save these into their respective files

2) put on the header:

<link href="css/customalert.css" rel="stylesheet" type="text/css"/>
<script src="js/customalert.js"></script>

3) USE: https://lipis.github.io/bootstrap-sweetalert/

swal("Here's a message!")

message with a second line
swal("Here's a message!", "It's pretty, isn't it?")

message with warning icon, note second parameter is black, or it just becomes a 
second line of text
swal("Enter your first name", "" , "warning") ;