First of all, you have an error in your code. (dupplicate id's)
<button id="login" type="button" class="btn btn-default navbar-btn" data-target="#signin" data-toggle="modal">Create an Account</button>
<button id="create" type="button" class="btn btn-primary navbar-btn" data-target="#signin" data-toggle="modal">Sign In</button>
And
<div class="tab-pane active in" id="login">
<div class="tab-pane fade.in" id="create">
So i renamed those id's with create_btn
, login_btn
and create_tab
, login_tab
. Another error is that your button id is create and the label is Sign in
and for the login id the label is Create an Account
. (switched)
All you have to do besides this corrections is to add the folowing javascript in your code:
$( document ).ready(function() {
$('#create_btn').on('click', function(){
$('#create_tab').tab('show')
})
$('#login_btn').on('click', function(){
$('#login_tab').tab('show')
})
});