Last active
October 10, 2015 19:48
-
-
Save steffenr/3741573 to your computer and use it in GitHub Desktop.
localize jqueryUI datepicker to german
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if($('input.datepicker').length) { | |
$('.datepicker').datepicker({ | |
dateFormat: 'dd.mm.yy', | |
monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'], | |
dayNames: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag','Samstag'], | |
dayNamesMin: ['So', 'Mo', 'Die', 'Mi', 'Do', 'Fre', 'Sa'] | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The check for length greater that zero is not necessary, you can remove ">0" :)