更改JQuery DatePicker的标题 [英] Change title of JQuery DatePicker

查看:67
本文介绍了更改JQuery DatePicker的标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找更改我的JQuery DatePicker的标题,因为它显示的是西班牙语的错误格式。它说agosto 2015而不是Agosto de 2015。我有办法吗?

I'm looking to change the title of my JQuery DatePicker because it is displaying the wrong format for Spanish. It is saying "agosto 2015" instead of "Agosto de 2015". Is there a way I can do that?

提前致谢!

推荐答案

一种方法是使用 monthNames 选项可以更改每个月的名称。因此,例如,您可以将agosto更改为Agosto de。

One way to do this would be to use the monthNames option in the jQuery DatePicker to change the name of each month. So for instance you would change "agosto" to "Agosto de".

示例:

$( ".selector" ).datepicker({
    monthNames: [ "Enero de", "Febrero de", ... , "Diciembre de" ]
});

这篇关于更改JQuery DatePicker的标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆