- requires
jquery.js
andjquery.ui.js
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.ui.js"></script>
- add class
draggable
to modal container.
<div class="modal draggable fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">...</div>
<div class="modal-body">...</div>
<div class="modal-footer">...</div>
</div>
</div>
</div>
Thanks so much for posting this! A project I got involved in lately had some weird bug where dragging the window would drag the parent window's scroll bar. This fixed it!