Hi i have a questions about this http://dl.dropbox.com/u/143355/datepicker/datepicker.html twitter bootstrap plugin.
How to change this code so I could asign datepicker to field which I want ?? I have tryied like this
$('[data-datepicker]').each(function(){
new DatePicker(this, option);
});
new DatePicker($('#date'), options);
And every time a get Datepicker is undefined. How to make it work ??
You can’t use
Datepickerbecause it’s enclosed in the plugin namespace.You should use that :
and remove the
data-datepickerattribute like that :For everybody information, this is the source of the plugin : https://github.com/twitter/bootstrap/pull/657