html - Execute jQuery after Bootstrap Modal Closes -


this question has answer here:

i trying execute jquery code after bootstrap modal closed on page, have id of modal in jquery , everything. i'd use jquery function of sort, opposed conditional if-statement. modal have open, how run jquery after it's closed (the animation should complete , everything)?

<div id="part_number-modal" class="modal fade in" tabindex="-1" role="dialog" aria-labelledby="part_number-modal" aria-hidden="false" style="display: block;"> <!-- rest of modal html in here --> </div> 

you can use hidden event handler

this event fired when modal has finished being hidden user (will wait css transitions complete).

$('#part_number-modal').on('hidden.bs.modal', function (e) {   // something... }) 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -