• Prevent Bootstrap Modal from disappearing when clicking outside or pressing escape



    There are two ways to disable click outside of bootstrap model area to close modal-
    1. using javascript
      $('#myModal').modal({
         backdrop: 'static',
         keyboard: false
      });
    2. using data attribute in HTML tag
      data-backdrop="static" data-keyboard="false" //write this attributes in that button where you click to open the modal popup.
  • 1 comment:

    1. Thanks for this Great Information.
      For additional info, if you need Professional AC Rental Service in Indonesia for something like event or anything elese, you can try to reach us. We will be very happy to assist you.

      Thanks again.

      ReplyDelete

    FAVOURITE LINE

    To steal ideas from one is plagiarism. To steal from many is Research.

    ADDRESS

    Mumbai , Maharashtra

    EMAIL

    shikha.pathak6@gmail.com
    shikha.the.swt.pari@gmail.com

    Skype

    shikha_pari