-1

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

dev1234
  • 5,376
  • 15
  • 56
  • 115
  • duplicate [http://stackoverflow.com/questions/935573/how-do-you-close-a-jquery-simplemodal][1] $.modal.close(); [1]: http://stackoverflow.com/questions/935573/how-do-you-close-a-jquery-simplemodal – O'Mutt Nov 24 '14 at 03:36
  • i am asking for a way to stop closing the model when cling outside of the window. – dev1234 Nov 24 '14 at 03:39
  • *"jquery popup box"* is very vague. Please link to the exact plugin you're using. does `yii-booster` create the popup..? – T J Nov 24 '14 at 04:12

1 Answers1

1

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

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

Bootstrap Modals

O'Mutt
  • 1,557
  • 1
  • 13
  • 27