Lokalisering af jQuery Datepicker plugin til dansk

Hvis du ønsker at benytte jQuery Datepicker plugin på dansk, så skal du huske at linke til følgende JavaScript. Det var ikke helt nemt at hitte ud af, da det er udokumenteret….!”#¤

    <script type="text/javascript" src="http://jqueryui.com/ui/i18n/jquery.ui.datepicker-da.js">
    </script>

Dernæst laver du dit kald til Datepicker:

$("#myDate").datepicker(
$.datepicker.regional(['da']);
);
Advertisements

3 thoughts on “Lokalisering af jQuery Datepicker plugin til dansk

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s