8

A simple issue, but I can't seem to find the answer.

I've limited the date range in jQuery Datepicker:

$( "#MyDatepicker" ).datepicker( "option", "minDate", new Date())

Is there a way to remove all restrictions for date range?

informatik01
  • 16,038
  • 10
  • 74
  • 104
Earl Grey
  • 95
  • 1
  • 1
  • 4

2 Answers2

34

Try this $( "#MyDatepicker" ).datepicker( "option", "minDate", null).

From JQuery documentation about datepicker minDate option

Set a minimum selectable date via a Date object or as a string in the current dateFormat, or a number of days from today (e.g. +7) or a string of values and periods ('y' for years, 'm' for months, 'w' for weeks, 'd' for days, e.g. '-1y -1m'), or null for no limit.

Aleksandr M
  • 24,264
  • 12
  • 69
  • 143
-1

Using this jQuery datepick, what about

$(selector).datepick();
Anshu
  • 7,783
  • 5
  • 31
  • 41