Skip to content

Instantly share code, notes, and snippets.

@scopevale
Created January 26, 2012 17:17
Show Gist options
  • Save scopevale/1683877 to your computer and use it in GitHub Desktop.
Save scopevale/1683877 to your computer and use it in GitHub Desktop.
jsFiddle/Gist demo - jQuery UI DatePicker
<div class="demo">
<p>Date: <input type="text" id="datepicker"></p>
</div>
$(document).ready(function() {
var locale = 'en-GB';
$.datepicker.setDefaults( {
changeMonth: true,
changeYear: true,
} );
$.datepicker.setDefaults( $.datepicker.regional[locale] )
$('#datepicker').datepicker( );
});
name: jsFiddle/Gist demo - jQuery UI DatePicker
description: jsFiddle demo hosted on Gist using jQuery UI to display a popup calendar
authors:
- Gary Smith
title:
- JS Fiddle - jsFiddle/Gist integration demo - DatePicker
resources:
- /js/empty.js
- http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/start/jquery-ui.css
- https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js
- https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/i18n/jquery-ui-i18n.js
normalize_css: yes
...
@scopevale
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment