"Login/Register in Tabbed Interface"
Bootstrap 2.3.2 Snippet by msurguy

<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="span12"> <div class="" id="loginModal"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3>Have an Account?</h3> </div> <div class="modal-body"> <div class="well"> <ul class="nav nav-tabs"> <li class="active"><a href="#login" data-toggle="tab">Login</a></li> <li><a href="#create" data-toggle="tab">Create Account</a></li> </ul> <div id="myTabContent" class="tab-content"> <div class="tab-pane active in" id="login"> <form class="form-horizontal" action='' method="POST"> <fieldset> <div id="legend"> <legend class="">Login</legend> </div> <div class="control-group"> <!-- Username --> <label class="control-label" for="username">Username</label> <div class="controls"> <input type="text" id="username" name="username" placeholder="" class="input-xlarge"> </div> </div> <div class="control-group"> <!-- Password--> <label class="control-label" for="password">Password</label> <div class="controls"> <input type="password" id="password" name="password" placeholder="" class="input-xlarge"> </div> </div> <div class="control-group"> <!-- Button --> <div class="controls"> <button class="btn btn-success">Login</button> </div> </div> </fieldset> </form> </div> <div class="tab-pane fade" id="create"> <form id="tab"> <label>Username</label> <input type="text" value="" class="input-xlarge"> <label>First Name</label> <input type="text" value="" class="input-xlarge"> <label>Last Name</label> <input type="text" value="" class="input-xlarge"> <label>Email</label> <input type="text" value="" class="input-xlarge"> <label>Address</label> <textarea value="Smith" rows="3" class="input-xlarge"> </textarea> <div> <button class="btn btn-primary">Create Account</button> </div> </form> </div> </div> </div> </div> </div> </div> </div>

Related: See More


Questions / Comments:

very nice

rena (0) - 4 years ago - Reply 0


yeah

tomo (0) - 4 years ago - Reply 0


right

yeah (0) - 4 years ago - Reply 0


i am not sure..................................................................................................................................................................................................................................

kop (0) - 4 years ago - Reply 0


lol

yui (0) - 4 years ago - Reply 0


create account tab is not working why?

sudhir (0) - 4 years ago - Reply 0


You are missing a </div>

manu (0) - 4 years ago - Reply 0


in my system am unable to get the toggle tab.. help me out???

sandeep (0) - 4 years ago - Reply 0


try adding:

<script src="assets/js/bootstrap-tab.js"></script>

mister4269 (0) - 4 years ago - Reply 0


Just a word of advice. You don't need a header tag saying "Login".. The selected tab shows it's a log in form already:)

Mikey King (0) - 4 years ago - Reply 0