JQuery UI datepicker localization

怎甘沉沦 提交于 2019-12-24 01:40:38

问题


I'm trying to get a Hebrew Calendar on JQueryUI Datepicker. For some reason, it always stays in English.

This is my code:

$.datepicker.setDefaults( $.datepicker.regional[ "" ] );
$( ".calendar_date" ).datepicker( $.datepicker.regional[ "he" ] );  

Thanks!


回答1:


Have you downloaded and included in your page the localized calendar? You can find it and download it from here - check the source of the page, the Hebrew Calendar is this. You should download and include this js in your page.



来源:https://stackoverflow.com/questions/6888452/jquery-ui-datepicker-localization

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!