I am using the Yii Framework for application development. I use
$(document).ready(function(){
$('.date-picker').datepicker();
});
it works everywhere, but when I put it in the index.php view file, it gives me the following error in the firefox console:
TypeError: $ (...). datepicker is not a function
$ ('DatePicker.) DatePicker () ;.
I searched for the error above, but in my criteria from stackoverflow and other blogs for this request no solutions are applicable.
thanks
source
share