I\'ve got this code:
Don't use hasDatepicker
as your date picker's class name. Use a different name, like date_picker
.
JQuery adds the class hasDatepicker
to the element that datepicker() is called on. If the element already has the class hasDatepicker
, then the datepicker() function does nothing. So, just use a different class name.