Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery UI datepicker: How to change the month names in the drop-down from short to long names?
    text
    copied!<p>I need to <strong>change the month names from short names to long names</strong> in my jQuery UI datepicker.</p> <p>My properties are:</p> <pre><code>$.datepicker.regional['de'] = { prevText: '&amp;#x3c;zur&amp;uuml;ck', nextText: 'vor&amp;#x3e;', monthNames: ['Januar', 'Februar', 'M&amp;auml;rz', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'], monthNamesShort: ['Jan', 'Feb', 'M&amp;auml;r', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], dayNames: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'], dayNamesShort: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], dayNamesMin: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], weekHeader: 'Wo', dateFormat: 'dd.mm.yy', firstDay: 1, changeMonth: true, changeYear: true, yearRange: "-0:+2", isRTL: false, showMonthAfterYear: false, minDate: 0 }; $.datepicker.setDefaults($.datepicker.regional['de']); var dates = $("#von, #bis").datepicker({ showOn: "button", buttonImage: "calendar.png", buttonImageOnly: true, buttonText: 'Datum w\u00E4hlen', onSelect: function (selectedDate) { var option = this.id == "#von" ? "minDate" : "maxDate", instance = $(this).data("datepicker"), date = $.datepicker.parseDate( instance.settings.dateFormat || $.datepicker._defaults.dateFormat, selectedDate, instance.settings); dates.not(this).datepicker("option", option, date); } }); </code></pre> <p>At the moment the calendar only shows short month names like "Apr" instead of "April" in the dropdown list.</p> <p>Maybe I am overwriting the default long names with some piece of code?</p> <p>Please help.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload