I have some problem in here, and I first time using alert in the sweet alert, I have a question about this topic why when I call my alert the content is up to lift and not stack with the alert? For the example like this :
I am confused about this, well I already follow the documentation to use this alert, and I didn't change anything for this style, I just call the javascript, and for the result like the image above.
js
let Swal = require('sweetalert2');
$(document).ready(function () {
"use strict"
$("#my-button").on('click', function () {
Swal.fire(
'The Internet?',
'That thing is still around?',
'question'
)
});
});
html
<button type="submit" id="my-button" class="btn btn-block btn-primary">Sign In</button>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…