<button class="sweetalert sweetalert-basic button
button-primary">Basic</button>
$('.sweetalert-basic').on('click', function(){
swal({
title:
"Here's the title!",
text:
"Here's the Lorem ipsum text!"
});
});
For more Information please follow the Official Documentation