Created
April 9, 2016 18:06
-
-
Save jfunez/ef93966d4a79a8066884871f870a2b0e to your computer and use it in GitHub Desktop.
remove modal content to avoid caching
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
$('#modal-id').on('shown', function () { | |
/* add code here to be executed when modal is displayed */ | |
}); | |
$('#modal-id').on('hidden', function () { | |
/* the next line will remove from DOM the content of the modal body */ | |
$(this).removeData('modal'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment