W.K W.K - 3 years ago 216
jQuery Question

Datepicker enable all date

I have an datepicker that work as start date and end date for my project. But I've noticed that the future date are disabled, How can I enable all dates?

maxDate: new Date(),
numberOfMonths: 2,
dateFormat: "dd/mm/yy",
onSelect: function (selectedDate) {
if (!$(this).data().datepicker.first) {
$(this).data().datepicker.inline = true
$(this).data().datepicker.first = selectedDate;
} else {
$(this).val($(this).data().datepicker.first + " - " + selectedDate);
$(this).data().datepicker.inline = false;
onClose: function () {
delete $(this).data().datepicker.first;
$(this).data().datepicker.inline = false;

Answer Source

Don't set Your maxDate param, or set it to null.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download