my modal still get close when i use modal show code example Example: when modal close event $("yourid").on('hide.bs.modal', function(){ // do it here });