I am using SweetAlert box and I have three buttons, which i created using html inputs but I need to have three different click event listener performing different actions on each button click but its not working. Please help
$('#btnProcessRequest').click(function (e) {
e.preventDefault(); //
var btn = "button";
swal({
title: "HTML <small>Consultation Review</small>!",
text: '<button type="' + btn + '" id="btnA" >A</button> ' +
'<button type="' + btn + '" id="btnB" >B</button> ' +
'<button type="' + btn + '" id="btnC" >C</button>',
html: true
}, function (idd) {
$("#btnA").click(function () {
alert(this.id);
});
$("#btnB").click(function () {
alert(this.id);
});
$("#btnC").click(function () {
alert(this.id);
});
});
});