I am using a JQuery confirmation for deleting. When I click the button I need to execute a query.
Here is the code for confirmation:
function DeleteButton () {
$.confirm({
title: 'Some Title',
content: 'Are you sure want to delete ',
icon: 'fa fa-question-circle',
animation: 'scale',
closeAnimation: 'scale',
opacity: 0.5,
buttons: {
'confirm': {
text: 'Proceed',
btnClass: 'btn-blue',
action: function () {
}
},
cancel: function () {
$.alert('you clicked on <strong>cancel</strong>');
},
}
});
}
When clicked, I proceed need to execute some PHP code. How do I do it?