jquery-ui – JQuery datepicker语言

我使用jqueryui.com的jQuery datepicker,我有一个问题将日历更改为瑞典语,我有这个代码
<script type="text/javascript">
    $(function() {
        $.datepicker.setDefaults($.datepicker.regional['sv']);
        $("#StartDate").datepicker();
        $('#StartDate').datepicker('option','dateFormat','yy-mm-dd');
    }); 
</script>

仍然显示为英文日历。

可能会丢失什么?

解决方法

也许你没有语言文件

语言文件在这里https://github.com/jquery/jquery-ui/tree/master/ui/i18n

A new localization should be created
in a separate JavaScript file named
ui.datepicker-.js. Within a
document.ready event it should add a
new entry into the
$.datepicker.regional array,indexed
by the language code,with the
following attributes:

http://api.jqueryui.com/datepicker/

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: &lt;span id=&quot...
jQuery 添加水印 &lt;script src=&quot;../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...