title: Opening a modal (A) from another modal (B) but not opening A it when i click on the close botton of (B)
body: <p>I got a modal (A) I want that when I click on a special button of that modal, a modal (B) is opening.</p>
  
  <p>I've written this code : </p>
  
  <pre><code>$("#signUpLink").click(function() {
          $("#signIn").modal("hide");
  
          $('#signIn').on('hidden.bs.modal', function () {
              $('#signUp').modal('show')
          });
      });
  </code></pre>
  
  <p>The problem is that after the first clicking of <code>$("#signUpLink")</code> if <code>$("#signIn")</code> become hide then <code>$('#signUp').modal('show')</code> is executing.</p>
  
  <p>how can I use the <code>.off()</code> jQuery method to stop the event listening of <code>hidden.bs.modal</code> ?</p>