How do I emulate hide.bs.modal without bootstrap using jquery or javascript
I'm using jquery 1.11. Old code. I'm trying to emulate hide.bs.modal and eventually, hidden.bs.modal, show.bs.modal and shown.bs.modal. Code: (function($) { var oldshow = $.fn.show; var oldhide = $.fn.hide; $.fn.show = function() { return oldshow.apply(this, arguments); }; $.fn.modal.hide = function() {…