Skip to content

Instantly share code, notes, and snippets.

@RobertBonham
Created December 9, 2013 06:01
Show Gist options
  • Save RobertBonham/7867974 to your computer and use it in GitHub Desktop.
Save RobertBonham/7867974 to your computer and use it in GitHub Desktop.
Bootstrap Modal Javascript
<div id="theModal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
...buttons
</div>
</div>
</div>
</div>
$(function()
{
var showModal = function()
{
$("#theModal").modal("show);
};
$("#showModal).click(showModal);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment