aboutsummaryrefslogtreecommitdiffstats
path: root/demos/functional
diff options
context:
space:
mode:
authorMarc Grabanski <m@marcgrabanski.com>2008-06-10 10:42:34 +0000
committerMarc Grabanski <m@marcgrabanski.com>2008-06-10 10:42:34 +0000
commit7d9c73f0c57f09b09d827a0f7e7d24da3eb8764e (patch)
treeea96f716e908784df3062bb53ffff6d88a0c15c7 /demos/functional
parent175015866cfe600594f40cc3213839d338d38360 (diff)
downloadjquery-ui-7d9c73f0c57f09b09d827a0f7e7d24da3eb8764e.tar.gz
jquery-ui-7d9c73f0c57f09b09d827a0f7e7d24da3eb8764e.zip
simple datepicker demo
Diffstat (limited to 'demos/functional')
-rw-r--r--demos/functional/templates/ui.datepicker.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/demos/functional/templates/ui.datepicker.html b/demos/functional/templates/ui.datepicker.html
new file mode 100644
index 000000000..b7355fa77
--- /dev/null
+++ b/demos/functional/templates/ui.datepicker.html
@@ -0,0 +1,32 @@
+<script type="text/javascript">
+
+ var model = {
+
+ renderAt: '#containerDemo',
+
+ title: 'Datepicker Demos',
+
+ demos: [
+
+ {
+ title: 'Datepicker',
+ desc: 'A date picker can easily be added to an input field with default settings.',
+ html: '<label>Default datepicker</label> <input type="text" size="30" value="click to show datepicker" id="defaultFocus"/>',
+ destroy: '$("#defaultInput").datepicker("destroy");',
+
+ options: [
+ { desc: 'Default datepicker', source: '$("#defaultFocus").datepicker();' }
+ ]
+ }
+
+ ]
+
+ };
+
+ $(function(){
+
+ uiRenderDemo(model);
+
+ });
+
+</script> \ No newline at end of file