gpt4 book ai didi

javascript - jquery datepicker 不显示yearRange

转载 作者:行者123 更新时间:2023-11-28 12:43:34 24 4
gpt4 key购买 nike

我使用 jQuery 日期选择器,需要一个带有年份选择元素的日期选择器。这是我的元素的代码:

$("#geburtsdatum").datepicker({
"yearRange":"2000:2010",
"firstDay":1,
"dayNamesMin":["So","Mo","Di","Mi","Do","Fr","Sa"],
"monthNames":["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],
"dateFormat":"dd.mm.yy"});

但是我缺少日期选择器中的选择。有人知道我做错了什么吗? (我正在使用 jquery-1.7.1。)

my datepicker

最佳答案

您需要添加“changeYear”选项。 See the source on the documentations page here.

关于javascript - jquery datepicker 不显示yearRange,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10353239/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com