jQuery UI datepicker: How to change the month names in the drop-down from short to long names?

后端 未结 3 1766
别那么骄傲
别那么骄傲 2021-02-12 21:14

I need to change the month names from short names to long names in my jQuery UI datepicker.

My properties are:

$.datepicker.regional[\'d         


        
3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-12 21:43

    Use the property monthNamesShort and attribute it the names you want.

    In my case, I wanted to show, in the month drop-down, the month long name, in portuguese:

    monthNamesShort: [ "Janeiro", "Fevereiro", "Março", "Abril",
                       "Maio", "Junho", "Julho", "Agosto", "Setembro",
                       "Outubro", "Novembro", "Dezembro" ]
    

提交回复
热议问题