I use this plugin: link
Follow JSFiddle: link
After clicking on the "replaceWith" button, the "Confirmation" button will no longer work.
Follow the code below:
$('#teste').confirmation();
$("#replaceWith").click(function() {
$('#teste').replaceWith('<button id="teste">Confirmação</button>');
});
The "Confirmation" button does not work after clicking the "replaceWith" button.
Update @RicardoPontual :
Follow the code below:
$('[data-toggle=confirmation-document]').confirmation({
singleton: true,
popout: true,
rootSelector: '[data-toggle=confirmation-document]',
title: '',
content: '',
buttons: [
{
label: 'Criar',
onClick: function () {
//códigos
}
},
{
label: 'Apagar',
onClick: function () {
//códigos
}
}
]
});
Any solution?