Last active
September 26, 2019 20:35
-
-
Save marc-gist/5495576 to your computer and use it in GitHub Desktop.
bootstrap modal with jquery show button
This file contains hidden or 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
<script> | |
/* to show modal via jquery clock event bound to id="modal_button_id" a/button/etc */ | |
$(document).ready(function() { | |
$('#modal_button_id').click(function (event) { | |
$('#myModal').modal('show') | |
}); | |
</script> | |
<div class="modal hide fade" id="modalID"> | |
<div class="modal-header"> | |
<a class="close" data-dismiss="modal">×</a> | |
<div>TITLE</div> | |
</div> | |
<div class="modal-body"> | |
Modal Body | |
</div> | |
<div class="modal-footer"> | |
<a data-dismiss="modal" class="close">Close</a> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment