title: close one modal and open a new modal with one button
body: <p>I am using <em>bootstrap</em> and have a <strong>one</strong> modal that I would like to have a link on to <strong>another</strong> modal. I can't seem to figure this out and currently I am using the <code>modal.close()</code>and <code>.modal('show')</code> but that is not working.</p>
  
  <pre><code>$('a#to3heart').click(function(){
      $('#portfolioModal2').modal({onShow: function (dialog) {
          $.modal.close()
          $('#portfolioModal1').modal('show'); 
              return false;
          }
      });
  });
  </code></pre>