Thursday, April 2, 2015

Disable click outside of bootstrap model area to close modal

Disable click outside of bootstrap model area to close modal

making a bootstrap project, with a couple of Bootstrap 'Modals'. someone  trying to customize some of the default features.

they want to disable click on outside of model area to close modal

$('#myModal').modal({
    backdrop: 'static',
    keyboard: false  // to prevent closing with Esc button (if you want this too)
})
 
happy Coding :)

1 comment:

  1. My friend Suggest me this blog and I can say this is the best blog to get the basic knowledge.Thank you so much for this Selenium Training in Chennai

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...