title: I have this error : $(...).datepicker is not a function
body: <p>I try to use a datepicker, but it doesn't work.</p>
  
  <p>I have this error : <code>$(...).datepicker</code> is not a function</p>
  
  <p>I use many frameworks and librairy (Adminlte, bootstrap, chartjs, datatable). And I think that there is a conflicts between they.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
      $('#datepicker').datepicker();
      $('#datepicker').on("changeDate", function() {
          $('#my_hidden_input').val(
              $('#datepicker').datepicker('getFormattedDate')
          );
      });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="fr"&gt;
  
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;title&gt;AdminLTE 2 | Dashboard&lt;/title&gt;
      &lt;!-- Tell the browser to be responsive to screen width --&gt;
      &lt;meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"&gt;
      &lt;!-- Bootstrap 3.3.6 --&gt;
      &lt;link rel="stylesheet" href="./css/bootstrap.min.css"&gt;
      &lt;!-- Font Awesome --&gt;
      &lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css"&gt;
      &lt;!-- Ionicons --&gt;
      &lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css"&gt;
  
      &lt;!-- Theme style --&gt;
      &lt;link rel="stylesheet" href="./css/AdminLTE.min.css"&gt;
      &lt;!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. --&gt;
      &lt;link rel="stylesheet" href="./css/skin-black-light.css"&gt;
      &lt;!-- CSS Table --&gt;
      &lt;link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css"&gt;
  
  
      &lt;!-- My Style --&gt;
      &lt;link rel="stylesheet" href="./css/style_general.css"&gt;
      &lt;link rel="stylesheet" href="./css/style.css"&gt;
  
      &lt;link rel="stylesheet/less" type="text/css" href="./less/dropdown.less" /&gt;
      &lt;link rel="stylesheet/less" type="text/css" href="./less/sprites.less" /&gt;
  
  
      &lt;!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --&gt;
      &lt;!-- WARNING: Respond.js doesn't work if you view the page via file:// --&gt;
      &lt;!--[if lt IE 9]&gt;
    &lt;script src="https://oss.maxcdn.com/html5shiv/3.7.3/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;/head&gt;
  
  &lt;body class="hold-transition skin-blue sidebar-mini fixed"&gt;
    
                                &lt;div class="form-group"&gt;
                                  &lt;label&gt;Date&lt;/label&gt;
                                  &lt;div class="input-group date margin-bottom-10" id="datetimepicker1"&gt;
                                      &lt;input type="text" class="form-control" id="date" name="date" placeholder="DD/MM/YYY"&gt;
                                      &lt;span class="input-group-addon"&gt;&lt;i class="glyphicon glyphicon-calendar"&gt;&lt;/i&gt;&lt;/span&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
   
      &lt;!-- jQuery 2.2.3 --&gt;
      &lt;script   src="https://code.jquery.com/jquery-2.2.3.min.js"&gt;&lt;/script&gt;
      &lt;!-- Bootstrap 3.3.6 --&gt;
      &lt;script src="./js/bootstrap.min.js"&gt;&lt;/script&gt;
      &lt;!-- AdminLTE App --&gt;
      &lt;script src="./js/app.min.js"&gt;&lt;/script&gt;
      &lt;!-- ChartJS 1.0.1 --&gt;
      &lt;script src="./js/Chart.min.js"&gt;&lt;/script&gt;
      &lt;!-- AdminLTE for demo purposes --&gt;
      &lt;script src="./js/demo.js"&gt;&lt;/script&gt;
      &lt;!-- SlimScroll 1.3.0 --&gt;
      &lt;script src="./js/jquery.slimscroll.min.js"&gt;&lt;/script&gt;
      &lt;!-- JS table --&gt;
      &lt;script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"&gt;&lt;/script&gt;
      &lt;script src="./js/test_table.js"&gt;&lt;/script&gt;
      &lt;script src="./js/js.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>