html - Execute jQuery after Bootstrap Modal Closes -
this question has answer here:
- bind function twitter bootstrap modal close 10 answers
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
Post a Comment