mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
simple datepicker demo
This commit is contained in:
parent
175015866c
commit
7d9c73f0c5
32
demos/functional/templates/ui.datepicker.html
Normal file
32
demos/functional/templates/ui.datepicker.html
Normal file
@ -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>
|
Loading…
Reference in New Issue
Block a user