I would like to display Ajax response on Sweet Alert2.Ajax response generated automatically and it might be some question with confirming button or just info message. I would like to display exactly the same what I receive on Ajax. Do some know how I can implement it? Regards.
success: function (result) {
swal({
html:true,
title: title,
type: type,
text: $(result).find('html'),
confirmButtonColor: "#33537d",
confirmButtonText: "Close",
closeOnConfirm: false
},
Aucun commentaire:
Enregistrer un commentaire