开发者

JavaScript calender to accept future date only

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜