swal fire parameters code example
Example 1: jquery sweet popup
$.sweetModal.prompt('Can I haz cheezeburger?', 'Can I?', 'Nope', function(val) {
$.sweetModal('You typed: ' + val);
});
Example 2: sweetalert2
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>