bootstrap modal close on click outside
Clicking on the modal “backdrop” will automatically close the modal. data-backdrop="static" data-keyboard="false" //write this attributes in that button where you click to open the modal popup. If you have no idea about creating a modal popup with Bootstrap, you can follow our post on Bootstrap modal.. Use the below example to add a simple Bootstrap button.The button takes attribute data-target, data-toggle, backdrop and data-keyboard.. Add the id of the modal … This is for Bootstrap 3. Try and test HTML code online in a simple and easy way using our free HTML editor and see the results in real-time. Answer. User clicked outside the modal then nothing happens. Launch static backdrop modal