
Solution : To disable on click set backdrop option as static and to prevent closing of the modal by esc button set keyboard option as false as shown in below given code.
1. If you are using javascript for displaying Modal.
$('#myModal').modal({backdrop: 'static', keyboard: false})
2. If you are using data attributes on html or jsp.
<button data-backdrop="static" data-keyboard="false" data-target="#myModal"
data-toggle="modal">
Click Here for Modal
</button>`
0 comments:
Post a Comment