diff options
author | Marc Grabanski <m@marcgrabanski.com> | 2008-06-10 10:42:34 +0000 |
---|---|---|
committer | Marc Grabanski <m@marcgrabanski.com> | 2008-06-10 10:42:34 +0000 |
commit | 7d9c73f0c57f09b09d827a0f7e7d24da3eb8764e (patch) | |
tree | ea96f716e908784df3062bb53ffff6d88a0c15c7 /demos/functional | |
parent | 175015866cfe600594f40cc3213839d338d38360 (diff) | |
download | jquery-ui-7d9c73f0c57f09b09d827a0f7e7d24da3eb8764e.tar.gz jquery-ui-7d9c73f0c57f09b09d827a0f7e7d24da3eb8764e.zip |
simple datepicker demo
Diffstat (limited to 'demos/functional')
-rw-r--r-- | demos/functional/templates/ui.datepicker.html | 32 |
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 |