一个简单的问题,但我似乎无法找到答案.
我限制了jQuery Datepicker中的日期范围:
$( "#MyDatepicker" ).datepicker( "option","minDate",new Date())
有没有办法删除日期范围的所有限制?
解决方法
试试这个$(“#MyDatepicker”).datepicker(“option”,“minDate”,null).
来自JQuery文档关于datepicker minDate选项
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.