Buttons in bootstrap modals would not click

In my bootstrap modals, the buttons would not do any action, tried with jquery click, with onclick, etc.

What finally worked with giving the “document” role:

<div class=”modal-dialog” role=”document” >