Bootstrap Event for modal, executing JS before modal popup

Bootstrap provide some event which can be hook on modal functionality. "" is a event used to hook a function just befor a modal window popups. Below is an example how you can acheive this using "".
//Comment Popop
$("#ShowComment").on("", function(e) {
var questoinId = $(e.relatedTarget).data('questoinid');
method: "POST",
url: "<?php echo site_url()?>dashboard/get_comments/"+questoinId
.done(function( msg ) {
//Comment Popop
Below are some events available with bootstrap which can be hooked: [caption id="attachment_1082" align="alignnone" width="300"]bootstrap events bootstrap events[/caption] [si-contact-form form='1']

Your feedbacks are most welcome..