开发者

sort years in jquery datepicker

开发者 https://www.devze.com 2023-03-17 17:44 出处:网络
By default, in a jquery datepicker years are shown like this: 2007 2008 2009 2010 2011 and I want them to be sorted ascendent:

By default, in a jquery datepicker years are shown like this: 2007 2008 2009 2010 2011

and I want them to be sorted ascendent: 2011 2开发者_高级运维010 2009 2008 2007

I'm using google's online jquery, so I can't change anything in the code. any idea on how to change the type of sorting? I haven't found a parameter to pass the type of sorting.

thank you


May be duplicate of

JQuery UI Datepicker, reverse the order of the year in the dropdowns


and I want them to be sorted ascendent: 2011 2010 2009 2008 2007

That's descending, no ascending.

I'm using google's online jquery, so I can't change anything in the code.

Your page code does not run from google servers, you're simply loading jQuery (et al) from them

JQuery UI Datepicker, reverse the order of the year in the dropdowns

0

精彩评论

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