I am using bootstrap and have a one modal that I would like to have a link on to another modal. I can't seem to figure this out and currently I am using the modal.close()
and .modal('show')
but that is not working.
$('a#to3heart').click(function(){
$('#portfolioModal2').modal({onShow: function (dialog) {
$.modal.close()
$('#portfolioModal1').modal('show');
return false;
}
});
});
I had a similar issue and solved it with a generic jQuery solution.
It just hides all modal that are not targeted.
use:
see: http://getbootstrap.com/javascript/#modals
demo: http://jsfiddle.net/5qCm9/