开发者

jqueryui datepicker customize problem

开发者 https://www.devze.com 2022-12-28 08:31 出处:网络
Greeting, I would like the jqueryui datapicker to use polish localization. Addition开发者_开发问答ally, the dates have to be limited so it should not be possible to choose past dates. I have somethin

Greeting, I would like the jqueryui datapicker to use polish localization. Addition开发者_开发问答ally, the dates have to be limited so it should not be possible to choose past dates. I have something like this:

$.datepicker.setDefaults($.datepicker.regional['pl']);
    $("#StartDate").datepicker({ minDate: 0, maxDate: '+1Y ' });
    $("#StartDate").datepicker('option', $.datepicker.regional['pl']);

Limitation works find, but I cannot achieve polish localization. Please help.


Make sure you included http://jquery-ui.googlecode.com/svn/trunk/ui/i18n/jquery.ui.datepicker-pl.js.

Also you don't need to set the option, setDefaults is enough.

$.datepicker.setDefaults($.datepicker.regional['pl']); $("#StartDate").datepicker({ minDate: 0, maxDate: '+1Y ' });

0

精彩评论

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