Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using the code below to hide the modal "signin" after hiding that modal the "changepassword" modal will display. But the below code causing an issue "Object doesn't support property or method 'preventDefault'" in bootstrap.js only in IE.

Code:

$('#signin').modal('hide');
$('.modal-backdrop').remove();
$('#ChangePassword').modal('show');

Bootstrap.js

VB
Modal.prototype.hide = function (e) {

     if (e) e.preventDefault();

   e = $.Event('hide.bs.modal')

   this.$element.trigger(e)

   if (!this.isShown || e.isDefaultPrevented()) return

   this.isShown = false

   this.escape()
Posted
Updated 5-Feb-15 7:16am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900