开发者

jqueryui datepicker customize problem

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜