I have an application with Modal bootstrap, but when sending the data with the button it duplicates the event, it follows the js with the duplication.
$(document).on('click', '.form-delete', function(e){
e.preventDefault();
var $form=$(this);
$('#title_delete').val($(this).data('title'));
$('#confirm').modal({ backdrop: 'static', keyboard: false })
.on('click', '#delete-btn', function(){
alert($form);
});
});
The operation is as follows, if you close the modal and open again, clicking the delete button and sending the data sends the data of the previous and current modal.
Follow the test link link