title: TypeError: $(...).datepicker is not a function
body: <p>I am using Yii Framework to develop an application. I am using</p>
  <pre><code>$(document).ready(function(){
      
      $('.date-picker').datepicker();
      
  });
  </code></pre>
  <p>everywhere it is running, but when I am placing it in index.php view file, then it is giving me the following error in firefox console:</p>
  <blockquote>
  <p>TypeError: $(...).datepicker is not a function</p>
  <p>$('.date-picker').datepicker();</p>
  </blockquote>
  <p>I have search the above error everywhere but no solutions are applicable in my criteria from stackoverflow, and other blogs for this query.</p>
  <p>Thanks</p>