how to add input field and button in sweet alert code example
Example 1: swal change confirm button class
Swal.fire({
title: 'example text',
buttonsStyling: false,
customClass: {
confirmButton: 'example-class' //insert class here
}
})
Example 2: change icon in sweet alert
swal({ icon: "error",});