Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Close Modal after next Modal

sebastian.bleuel99 free asked 8 years ago


Hi, when I use the register modal and I click on the "Already have an account? Log In" it opens me the login modal but it is hidden of the register modal. So could you tell me how I can let the modal close after I clicked on another modal opener?

Hi, Sebastian! Use this JS code:
$('#modal-login').on('show.bs.modal', function(e) {
    $('#modal-register').modal('hide');
});


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags