jQuery datepicker to prevent past date

后端 未结 15 2827
生来不讨喜
生来不讨喜 2020-12-04 16:34

How do I disable past dates on jQuery datepicker? I looked for options but don\'t seem to find anything that indicates the ability to disable past dates.

UPDATE: Th

15条回答
  •  醉梦人生
    2020-12-04 17:14

    I used the min attribute: min="' + (new Date()).toISOString().substring(0,10) + '"

    Here's my code and it worked.

    
    

提交回复
热议问题