How to remove that particular row of 'Revoke' button after jquery 'Confirm' button is being selected ? The code below is not removing 'Revoke' button permanently.
<td>
<div class="btn btn-primary revoke-btn">Revoke</div>
</td>
$(document).ready(function() {
$('.revoke-btn').click(function(e){
e.preventDefault();
$.confirm({
title:'Confirm?',
content:'Confirm to revoke?',
buttons:{
confirm: {
text: 'Confirm',
btnClass: 'btn-danger',
action: function () {
$(this).remove();
var link = $(e.currentTarget).parent().attr('href');
window.location.href=link;
}
},
cancel: {
text: 'Cancel',
btnClass: 'btn-default'
}
}
})
});
});