I add a button in the footer and I don't want that the modal close when I click on it. I tried preventDefault but it doesn't work..
dialog.find('.modal-footer').append('<button type="button" class="btn btn-primary">Display</button>')
I use bootbox.
Thank you.