开发者

jquery ui date picker not allow 2 weeks

开发者 https://www.devze.com 2023-03-09 05:36 出处:网络
how would I use the jQuery UI date picker and limit it to where no dates can be selected before 2 weeks from the current day? We allow vacation stops on our service but开发者_如何转开发 the user has t

how would I use the jQuery UI date picker and limit it to where no dates can be selected before 2 weeks from the current day? We allow vacation stops on our service but开发者_如何转开发 the user has to give 2 weeks notice. Is this possible with the date picker?

Thanks for any suggestions and help.


$( "#datepicker" ).datepicker({ minDate: -14, maxDate: "+14D" });


See the minDate/maxDate Options:

http://jqueryui.com/demos/datepicker

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号