title: How can I redirect to first tab in modal popup after I close the modal popup?
body: <pre><code>    &lt;!-- Large modal --&gt;
  &lt;button class="btn btn-primary" data-toggle="modal" data-target="#myModal"&gt;
      Login modal&lt;/button&gt;
  &lt;div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"
      aria-hidden="true"&gt;
      &lt;div class="modal-dialog modal-lg"&gt;
          &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
                  &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;
                      ×&lt;/button&gt;
                  &lt;h4 class="modal-title" id="myModalLabel"&gt;
                      Login/Registration - &lt;a href="http://www.jquery2dotnet.com"&gt;jquery2dotnet.com&lt;/a&gt;&lt;/h4&gt;
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
                  &lt;div class="row"&gt;
                      &lt;div class="col-md-8" style="border-right: 1px dotted #C2C2C2;padding-right: 30px;"&gt;
                          &lt;!-- Nav tabs --&gt;
                          &lt;ul class="nav nav-tabs"&gt;
                              &lt;li class="active"&gt;&lt;a href="#Login" data-toggle="tab"&gt;Login&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="#Registration" data-toggle="tab"&gt;Registration&lt;/a&gt;&lt;/li&gt;
                          &lt;/ul&gt;
                          &lt;!-- Tab panes --&gt;
                          &lt;div class="tab-content"&gt;
                              &lt;div class="tab-pane active" id="Login"&gt;
                                  &lt;form role="form" class="form-horizontal"&gt;
                                  &lt;div class="form-group"&gt;
                                      &lt;label for="email" class="col-sm-2 control-label"&gt;
                                          Email&lt;/label&gt;
                                      &lt;div class="col-sm-10"&gt;
                                          &lt;input type="email" class="form-control" id="email1" placeholder="Email" /&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                                  &lt;div class="form-group"&gt;
                                      &lt;label for="exampleInputPassword1" class="col-sm-2 control-label"&gt;
                                          Password&lt;/label&gt;
                                      &lt;div class="col-sm-10"&gt;
                                          &lt;input type="email" class="form-control" id="exampleInputPassword1" placeholder="Email" /&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                                  &lt;div class="row"&gt;
                                      &lt;div class="col-sm-2"&gt;
                                      &lt;/div&gt;
                                      &lt;div class="col-sm-10"&gt;
                                          &lt;button type="submit" class="btn btn-primary btn-sm"&gt;
                                              Submit&lt;/button&gt;
                                          &lt;a href="javascript:;"&gt;Forgot your password?&lt;/a&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                                  &lt;/form&gt;
                              &lt;/div&gt;
                              &lt;div class="tab-pane" id="Registration"&gt;
                                  &lt;form role="form" class="form-horizontal"&gt;
                                  &lt;div class="form-group"&gt;
                                      &lt;label for="email" class="col-sm-2 control-label"&gt;
                                          Name&lt;/label&gt;
                                      &lt;div class="col-sm-10"&gt;
                                          &lt;div class="row"&gt;
                                              &lt;div class="col-md-3"&gt;
                                                  &lt;select class="form-control"&gt;
                                                      &lt;option&gt;Mr.&lt;/option&gt;
                                                      &lt;option&gt;Ms.&lt;/option&gt;
                                                      &lt;option&gt;Mrs.&lt;/option&gt;
                                                  &lt;/select&gt;
                                              &lt;/div&gt;
                                              &lt;div class="col-md-9"&gt;
                                                  &lt;input type="text" class="form-control" placeholder="Name" /&gt;
                                              &lt;/div&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                                  &lt;div class="form-group"&gt;
                                      &lt;label for="email" class="col-sm-2 control-label"&gt;
                                          Email&lt;/label&gt;
                                      &lt;div class="col-sm-10"&gt;
                                          &lt;input type="email" class="form-control" id="email" placeholder="Email" /&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                                  &lt;div class="form-group"&gt;
                                      &lt;label for="mobile" class="col-sm-2 control-label"&gt;
                                          Mobile&lt;/label&gt;
                                      &lt;div class="col-sm-10"&gt;
                                          &lt;input type="email" class="form-control" id="mobile" placeholder="Mobile" /&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                                  &lt;div class="form-group"&gt;
                                      &lt;label for="password" class="col-sm-2 control-label"&gt;
                                          Password&lt;/label&gt;
                                      &lt;div class="col-sm-10"&gt;
                                          &lt;input type="password" class="form-control" id="password" placeholder="Password" /&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                                  &lt;div class="row"&gt;
                                      &lt;div class="col-sm-2"&gt;
                                      &lt;/div&gt;
                                      &lt;div class="col-sm-10"&gt;
                                          &lt;button type="button" class="btn btn-primary btn-sm"&gt;
                                              Save &amp; Continue&lt;/button&gt;
                                          &lt;button type="button" class="btn btn-default btn-sm"&gt;
                                              Cancel&lt;/button&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                                  &lt;/form&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div id="OR" class="hidden-xs"&gt;
                              OR&lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="col-md-4"&gt;
                          &lt;div class="row text-center sign-with"&gt;
                              &lt;div class="col-md-12"&gt;
                                  &lt;h3&gt;
                                      Sign in with&lt;/h3&gt;
                              &lt;/div&gt;
                              &lt;div class="col-md-12"&gt;
                                  &lt;div class="btn-group btn-group-justified"&gt;
                                      &lt;a href="#" class="btn btn-primary"&gt;Facebook&lt;/a&gt; &lt;a href="#" class="btn btn-danger"&gt;
                                          Google&lt;/a&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My modal popup has two tabs like login &amp; registration, I clicked registration tab then closed the modal popup, after I click the modal popup it is in Registration tab but I want to show login tab. How is it possible?</p>