How to close Bootstrap modal only when user clicks on close?
I want to close modal only when user clicks on close button.
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
Add the below script to close modal only when user clicks on close button.
<script>
$(document).ready(function(){
$('.launch-modal').click(function(){
$('#myModal').modal({
backdrop: 'static'
});
});
});
</script>