I have two modal windows (“register” and “login”) and I show them using Twitter Bootstrap.
Now I need these behavior: window “login” is visible, it have button “Register”, which must to close window “login” and show window “register”.
a) Is it possible without manual Javascript code?
b) How I can to close windows manually?
$('login').modal('hide');
is not working.
Like this http://jsfiddle.net/bbAsC/ ??
Two buttons, register and login – two modals respectively, if you click on “register” in the login modal, it closes login and shows register instead.
Markup
script