force pp model to close only with close button code example Example: bootstrap modal prevent close $('#myModal').modal({backdrop: 'static', keyboard: false})