html button open modal window code example
Example 1: bootstrap modal popup
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Modal Header</h4>
</div>
<div class="modal-body">
<p>Some text in the modal.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
Example 2: html data-target modal
$('#myModal').modal('show')
Example 3: how to make popup modal in jquery with example
<div class="modal">
<p>Second AJAX Example!</p>
</div>
Example 4: how to make popup modal in jquery with example
<div id="ex1" class="modal">
<p>Thanks for clicking. That felt good.</p>
<a href="#" rel="modal:close">Close</a>
</div>
<p><a href="#ex1" rel="modal:open">Open Modal</a></p>