0
I need to manipulate the button clicked inside this function, how to pass the btn variable inside it?
$('.btn_excluir').on('click', function () {
btn = $(this);
swal_confirm('Deseja realmente excluir o registro?', function (btn) {
console.log(btn);
});
});
Remove the
btn
in parentheses. It has already been defined before the functionswal_confirm
.– Sam