Question and answer is powered by AnsPress.io
I want to disable modal close while mouse pointer click from outside. I have displayed modal using jQuery.
I am following this code:
<script type="text/javascript"> $('#myModal').modal('show'); </script>
How can I disable modal close from outside using jQuery
Apply below example code if you want to Disable modal close from outside using jquery.
Example code:
<script type="text/javascript"> $('#myModal').modal({ backdrop: 'static', keyboard: false }) </script>