开发者

jquery ui date picker not allow 2 weeks

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜