开发者

JavaScript calender to accept future date only

开发者 https://www.devze.com 2022-12-11 16:54 出处:网络
Is there a calendar c开发者_如何学编程ontrol to display only future dates? What would the code look like?The jQuery UI DatePicker can be configured to only allow future dates:

Is there a calendar c开发者_如何学编程ontrol to display only future dates? What would the code look like?


The jQuery UI DatePicker can be configured to only allow future dates:

<script type="text/javascript">
$(function() {
    $("#datepicker").datepicker({minDate: 0});
});
</script>


http://jqueryui.com/demos/datepicker/

0

精彩评论

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

关注公众号