I want to use the Hidden event on modals like this:
<div class="modal fade" id="modalthing" role="dialog">
<div class="modal-dialog modal-md" role="document">
<div class="modal-content">
<div class="modal-header">
<div class="modal-body">
<form>
//etc
</form>
</div>
</div>
</div>
</div>
</div>
And my javascript is:
$('#modalthing').on('hidden.bs.modal', function (e) {
console.log('test');
})
But my code is just nog executing the console.log
Am I missing something here? I got the code from the official bootstrap documentation and this question but I cant for the life of me figure out why it isnt triggering the event.