1<!-- html -->
2<button href="#myModal" class="btn btn-settings" data-backdrop="false" data-toggle="modal">Open Modal</button>
3
4<div id="myModal" class="modal fade">
5 <div class="modal-dialog">
6 <div class="modal-content">
7 <div class="modal-header">
8 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
9 <h4 class="modal-title">Settings</h4>
10
11 </div>
12 <div class="modal-body">
13 <h3>Lorem Ipsum</h3>
14 <p>Praesent non dictum dolor, vitae interdum erat. Nam quis consectetur mi. In consequat condimentum tortor, et lobortis est convallis ac. Quisque volutpat posuere dui, pellentesque vulputate dolor. Morbi dapibus orci eu est consectetur, sed pretium mauris laoreet. Pellentesque sodales ante non justo viverra, sit amet consectetur nisl vulputate.</p>
15 </div>
16 <div class="modal-footer">
17 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
18 <button id="loadpage" type="button" class="btn btn-primary">Save</button>
19 </div>
20 </div>
21 <!-- /.modal-content -->
22 </div>
23 <!-- /.modal-dialog -->
24</div>
25<!-- /.modal -->
26
27<script>
28 $("#myModal").draggable({
29 handle: ".modal-header"
30 });
31</script>