I\'ve got this code:
Please check if the datepicker works if you change the class name of the input fields from 'hasDatePicker' to something else. The reason is, when add the datepicker to the input field using the below code:
$(function() {
$('#date').datepicker();
});
it adds the class name "hasDatePicker" to the input field. (which is the one u r using)
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.