且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

更改JQuery DatePicker的标题

更新时间:2023-12-02 10:17:22

一种方法是使用 monthNames $ jQuery DatePicker中的c $ c>选项可以更改每个月的名称。因此,例如,您可以将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" ]
});