"Modal with tabbed content"
Bootstrap 2.3.2 Snippet by msurguy

<div class="container"> <div class="row"> <div class="span12"> <a data-toggle="modal" class="btn" href="#loginModal">Log in</a> <div class="modal hide" id="loginModal"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">✕</button> <h3>Login to Website</h3> </div> <div class="modal-body" style="text-align:center;"> <div class="row-fluid"> <div class="span10 offset1"> <div id="modalTab"> <div class="tab-content"> <div class="tab-pane active" id="login"> <form method="post" action='' name="login_form"> <p><input type="text" class="span12" name="eid" id="email" placeholder="Email"></p> <p><input type="password" class="span12" name="passwd" placeholder="Password"></p> <p><button type="submit" class="btn btn-primary">Sign in</button> <a href="#forgotpassword" data-toggle="tab">Forgot Password?</a> </p> </form> </div> <div class="tab-pane fade" id="forgotpassword"> <form method="post" action='' name="forgot_password"> <p>Hey this stuff happens, send us your email and we'll reset it for you!</p> <input type="text" class="span12" name="eid" id="email" placeholder="Email"> <p><button type="submit" class="btn btn-primary">Submit</button> <a href="#login" data-toggle="tab">Wait, I remember it now!</a> </p> </form> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div>

Similar snippets: See More


Comments:

benyates1 2013-11-22 12:01:19
    Is there a way to trigger the modal to trigger on page load but only once per visitor?
maxsurguy 2013-11-22 17:41:56
    You would have to use local storage or a cookie to set that in the browser's storage!
hakan 2014-06-23 13:34:25
    how to use required?
Thanh Bảo Nguyễn 2014-09-04 09:45:02
    I have problems.
When i use modal on SiteMaster is display always lock, help me!
César 2015-04-09 21:58:17
    this is not working for me too. I`m using Bootstrap v3.3.4 and even changed "span" to "col-md-x" still not working.
Somebody help me.
César 2015-04-10 18:06:54
    I get it. Bootstrap v3.3.4.

Commenting will be back soon.