Jquery Model dialog close

934 Views Asked by At

How is it possible to force the jquery popup box to close only when CLOSE button is clicked?

Here is the code.

jQuery('#myModal').modal({'show':false});

Now its also closing when clicking outside of the Model Box.

Extension : http://yiibooster.clevertech.biz/widgets/modals/view/modal.html

1

There are 1 best solutions below

0
On BEST ANSWER

If you add backdrop="static" that should force the modal to stay open

<div class="modal fade" data-backdrop="static">

Bootstrap Modals