title: Why doesn't Bootstrap datepicker work here?
body: <p>I am trying to use datepicker from <a href="http://www.eyecon.ro/bootstrap-datepicker/?utm_source=twitterfeed&amp;utm_medium=twitter" rel="nofollow">http://www.eyecon.ro/bootstrap-datepicker/?utm_source=twitterfeed&amp;utm_medium=twitter</a>.</p>
  
  <p>Question updated to include complete code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
      &lt;meta name="description" content=""&gt;
      &lt;meta name="author" content=""&gt;
  
      &lt;title&gt;Calendar&lt;/title&gt;
  
      &lt;!-- Bootstrap core CSS --&gt;
      &lt;link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"&gt;
  
      &lt;!-- Custom styles for this template --&gt;
      &lt;link rel="stylesheet" href="navbar.css"&gt;
  
      &lt;link rel="stylesheet" href="js/datepicker/css/datepicker.css"&gt;
      &lt;script src="js/datepicker/js/bootstrap-datepicker.js"&gt;&lt;/script&gt;
  
      &lt;link rel="stylesheet" href="js/fullcalendar-2.0.2/fullcalendar.css"&gt;
      &lt;link rel="stylesheet" href="js/fullcalendar-2.0.2/fullcalendar.print.css"&gt;
  
      &lt;script src="js/fullcalendar-2.0.2/lib/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/fullcalendar-2.0.2/lib/moment.min.js"&gt;&lt;/script&gt;
      &lt;script src="js/fullcalendar-2.0.2/fullcalendar.min.js"&gt;&lt;/script&gt;
  
      &lt;!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --&gt;
      &lt;!--[if lt IE 9]&gt;
        &lt;script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"&gt;&lt;/script&gt;
        &lt;script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"&gt;&lt;/script&gt;
      &lt;![endif]--&gt;
  
      &lt;script type='text/javascript'&gt;
  
      $(document).ready(function() {
  
          // page is now ready, initialize the calendar...
  
          $('#calendar').fullCalendar({
              // put your options and callbacks here
          })
  
      });
  
      &lt;/script&gt;
    &lt;/head&gt;
  
    &lt;body&gt;
  
      &lt;div class="container"&gt;
  
        &lt;!-- Static navbar --&gt;
        &lt;div class="navbar navbar-default" role="navigation"&gt;
          &lt;div class="container-fluid"&gt;
            &lt;div class="navbar-header"&gt;
              &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"&gt;
                &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
                &lt;span class="icon-bar"&gt;&lt;/span&gt;
                &lt;span class="icon-bar"&gt;&lt;/span&gt;
                &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;/button&gt;
              &lt;a class="navbar-brand" href="#"&gt;Calendar&lt;/a&gt;
            &lt;/div&gt;
            &lt;div class="navbar-collapse collapse"&gt;
              &lt;ul class="nav navbar-nav"&gt;
                &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
                &lt;li class="dropdown"&gt;
                  &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Bookings &lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
                  &lt;ul class="dropdown-menu" role="menu"&gt;
                    &lt;li&gt;&lt;a href="#" data-toggle="modal" data-target="#myModal"&gt;Add&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href="#"&gt;Delete&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
                &lt;/li&gt;
              &lt;/ul&gt;
              &lt;ul class="nav navbar-nav navbar-right"&gt;
                &lt;li&gt;&lt;a href="#"&gt;Admin&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
            &lt;/div&gt;&lt;!--/.nav-collapse --&gt;
          &lt;/div&gt;&lt;!--/.container-fluid --&gt;
        &lt;/div&gt;
  
        &lt;!-- Modal --&gt;
        &lt;script&gt;
           $('#dp1').datepicker({
               format: "MM-DD-YYYY",
               autoclose: true
           });
        &lt;/script&gt;
        &lt;div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"&gt;
          &lt;div class="modal-dialog"&gt;
            &lt;div class="modal-content"&gt;
              &lt;div class="modal-header"&gt;
                &lt;button type="button" class="close" data-dismiss="modal"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;span class="sr-only"&gt;Close&lt;/span&gt;&lt;/button&gt;
                &lt;h4 class="modal-title" id="myModalLabel"&gt;Form&lt;/h4&gt;
              &lt;/div&gt;
              &lt;div class="modal-body"&gt;
                &lt;!-- Form --&gt;
                &lt;form class="form-horizontal" role="form"&gt;
                  &lt;div class="form-group"&gt;
                    &lt;label for="inputForename" class="col-sm-2 control-label"&gt;Forename&lt;/label&gt;
                    &lt;div class="col-sm-10"&gt;
                      &lt;input type="text" class="form-control" id="inputForename" placeholder=""&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                    &lt;label for="inputSurname" class="col-sm-2 control-label"&gt;Surname&lt;/label&gt;
                    &lt;div class="col-sm-10"&gt;
                      &lt;input type="text" class="form-control" id="inputSurname" placeholder=""&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                    &lt;label for="inputBadge" class="col-sm-2 control-label"&gt;Badge&lt;/label&gt;
                    &lt;div class="col-sm-10"&gt;
                      &lt;input type="text" class="form-control" id="inputBadge" placeholder=""&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                    &lt;label for="inputStartDate" class="col-sm-2 control-label"&gt;Start Date&lt;/label&gt;
                    &lt;div class="col-sm-10"&gt;
                      &lt;input type="text" class="form-control" id="dp1"&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                    &lt;div class="col-sm-offset-2 col-sm-10"&gt;
                      &lt;button type="submit" class="btn btn-default"&gt;Submit&lt;/button&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
                &lt;/form&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  
        &lt;!-- Main component to show the calendar --&gt;
        &lt;div id="calendar"&gt;&lt;/div&gt;
  
      &lt;/div&gt; &lt;!-- /container --&gt;
  
  
      &lt;!-- Bootstrap core JavaScript
      ================================================== --&gt;
      &lt;!-- Placed at the end of the document so the pages load faster --&gt;
      &lt;script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"&gt;&lt;/script&gt;
    &lt;/body&gt;
  </code></pre>
  
  <p>Is there something wrong in what I am doing here? It seems ok based on the examples at <a href="http://www.eyecon.ro/bootstrap-datepicker/?utm_source=twitterfeed&amp;utm_medium=twitter" rel="nofollow">http://www.eyecon.ro/bootstrap-datepicker/?utm_source=twitterfeed&amp;utm_medium=twitter</a>.</p>