I am using bootstrap modal to showcase my special offers on my site. But this modal pops up, every time the page gets refreshed. How do I restrict this modal to appear only once?
<!-- Modal start-->
<div class="container">
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">/* header part */
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body">/* Body part */
Some text
</div>
</div>
<div class="modal-footer">/* Footer part */
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>` This is the code used for the modal. What change do i need to make to make the modal pop up just once , rather than appearing on every page refresh??`
</div>
<script>
$(document).ready(function(){
$("#myModal").modal();
});
</script>