I've got some trubble with this plugin : https://github.com/jdewit/bootstrap-timepicker
//= require jquery
//= require jquery_ujs
//= require bootstrap-datepicker/js/bootstrap-datepicker
//= require bootstrap-timepicker/js/bootstrap-timepicker
//= require admin/fileupload
//= require admin/category
//= require admin/cars
//= require admin/restaurants
//= require admin/events
//= require zipcodes
in admin/events.js :
$(document).ready(function(){
$('.timepicker').timepicker();
});
And I got this error : Uncaught TypeError: undefined is not a function
Can anybody help me ?
EDIT :
Here is what I got with console.log($) :
function ( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
// Need init if jQuery is called (just allow error to be thrown if not included)
return new jQuery.fn.init( selector, context );
} VM13723:2
undefined