<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Options</a></li>
<li><a href="#events">Events</a></li>
<li><a href="#methods">Methods</a></li>
<li><a href="#theming">Theming</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Datepicker</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>The jQuery UI Datepicker is a highly configurable plugin that adds datepicker functionality to your pages. You can customize the date format and language, restrict the selectable date ranges and add in buttons and other navigation options easily.</p>
<p>By default, the datepicker calendar opens in a small overlay onFocus and closes automatically onBlur or when a date if selected. For an inline calendar, simply attach the datepicker to a div or span.
</p><p>You can use keyboard shortcuts to drive the datepicker:
</p>
<ul>
<li>page up/down - previous/next month
<li>ctrl+page up/down - previous/next year
<li>ctrl+home - current month or open when closed
<li>ctrl+left/right - previous/next day
<li>ctrl+up/down - previous/next week
<li>enter - accept the selected date
<li>ctrl+end - close and erase the date
<li>escape - close the datepicker without selection
</ul>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>UI Core</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="220">
A simple jQuery UI Datepicker.<br />
</p>
<pre>$("#datepicker").datepicker();
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script>
<script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.core.js"></script>
<script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.datepicker.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#datepicker").datepicker();
});
</script>
</head>
<body style="font-size:62.5%;">
<div type="text" id="datepicker"></div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Options</h2>
<ul class="options-list">
<li class="option" id="option-altField">
<div class="option-header">
<h3 class="option-name"><a href="#option-altField">altField</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">''</dd>
</dl>
</div>
<div class="option-description">
<p>The jQuery selector for another field that is to be updated with the selected date from the datepicker. Use the <code>altFormat</code> setting below to change the format of the date within this field. Leave as blank for no alternate field.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>altField</code> option specified.
</dt>
<dd>
<pre><code>$('.selector').datepicker({ altField: '#actualDate' });</code></pre>
</dd>
<dt>
Get or set the <code>altField</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var altField = $('.selector').datepicker('option', 'altField');
//setter
$('.selector').datepicker('option', 'altField', '#actualDate');</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-altFormat">
<div class="option-header">
<h3 class="option-name"><a href="#option-altFormat">altFormat</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">''</dd>
</dl>
</div>
<div class="option-description">
<p>The <code>dateFormat</code> to be used for the <code>altField</code> option. This allows one date format to be shown to the user for selection purposes, while a different format is actually sent behind the scenes.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>altFormat</code> option specified.
</dt>
<dd>
<pre><code>$('.selector').datepicker({ altFormat: 'yy-mm-dd' });</code></pre>
</dd>
<dt>
Get or set the <code>altFormat</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var altFormat = $('.selector').datepicker('option', 'altFormat');
//setter
$('.selector').datepicker('option', 'altFormat', 'yy-mm-dd');</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-appendText">
<div class="option-header">
<h3 class="option-name"><a href="#option-appendText">appendText</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">''</dd>
</dl>
</div>
<div class="option-description">
<p>The text to display after each date field, e.g. to show the required format.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>appendText</code> option specified.
</dt>
<dd>
<pre><code>$('.selector').datepicker({ appendText: '(yyyy-mm-dd)' });</code></pre>
</dd>
<dt>
Get or set the <code>appendText</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var appendText = $('.selector').datepicker('option', 'appendText');
//setter
$('.selector').datepicker('option', 'appendText', '(yyyy-mm-dd)');</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-buttonImage">
<div class="option-header">
<h3 class="option-name"><a href="#option-buttonImage">buttonImage</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">''</dd>
</dl>
</div>
<div class="option-description">
<p>The URL for the popup button image. If set, button text becomes the <i>alt</i> value and is not directly displayed.</p>
</div>
<div class="option-examples">
<h4>Code examples</h4>
<dl class="option-examples-list">
<dt>
Initialize a datepicker with the <code>buttonImage</code> option specified.
</dt>
<dd>
<pre><code>$('.selector').datepicker({ buttonImage: '/images/datepicker.gif' });</code></pre>
</dd>
<dt>
Get or set the <code>buttonImage</code> option, after init.
</dt>
<dd>
<pre><code>//getter
var buttonImage = $('.selector').datepicker('option', 'buttonImage');
//setter
$('.selector').datepicker('option', 'buttonImage', '/images/datepicker.gif');</code></pre>
</dd>
</dl>
</div>
</li>
<li class="option" id="option-buttonImageOnly">
<div class="option-header">
<h3 class="option-name"><a href="#option-buttonImageOnly">buttonImageOnly</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Boolean</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">false</dd>
</dl>
</div>
<div class="option-description">
<p>Set to true to place an image after the
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
jQueryUIDatepicker–实用的jQuery日历控件 (541个子文件)
yellow1.css 28KB
yellow1.css 28KB
blue3.css 28KB
blue3.css 28KB
blue5.css 27KB
blue5.css 27KB
green.css 27KB
green.css 27KB
black5.css 27KB
black5.css 27KB
blue2.css 27KB
blue2.css 27KB
black4.css 27KB
black4.css 27KB
black6.css 27KB
blue4.css 27KB
black6.css 27KB
blue4.css 27KB
yellow2.css 27KB
red.css 27KB
yellow2.css 27KB
red.css 27KB
black1.css 27KB
black1.css 27KB
blue1.css 27KB
blue1.css 27KB
yellow3.css 27KB
yellow3.css 27KB
black3.css 27KB
black3.css 27KB
gray.css 27KB
gray.css 27KB
black2.css 27KB
black2.css 27KB
jquery-ui-1.7.custom.css 27KB
jquery-ui-1.7.custom.css 27KB
ui.theme.css 17KB
ui.theme.css 17KB
demos.css 14KB
ui.datepicker.css 4KB
ui.datepicker.css 4KB
testsuite.css 2KB
ui.core.css 1KB
ui.core.css 1KB
ui.base.css 1KB
ui.base.css 1KB
ui.dialog.css 1KB
ui.dialog.css 1KB
ui.tabs.css 1KB
ui.tabs.css 1KB
ui.resizable.css 993B
ui.resizable.css 993B
ui.slider.css 931B
ui.slider.css 931B
ui.accordion.css 731B
ui.accordion.css 731B
ui.progressbar.css 169B
ui.progressbar.css 169B
ui.all.css 47B
ui.all.css 47B
Thumbs.db 120KB
Thumbs.db 116KB
Thumbs.db 61KB
Thumbs.db 36KB
pbar-ani.gif 297KB
pbar-ani.gif 297KB
demo-config-on.gif 343B
calendar.gif 269B
calendar.gif 269B
calendar.gif 269B
icon-docs-info.gif 214B
demo-config-on-tile.gif 180B
demo-spindown-open.gif 105B
demo-spindown-closed.gif 104B
datepicker.html 62KB
tabs.html 47KB
sortable.html 46KB
draggable.html 38KB
dialog.html 38KB
resizable.html 28KB
accordion.html 25KB
droppable.html 19KB
slider.html 19KB
selectable.html 19KB
localization.html 13KB
index.html 13KB
progressbar.html 8KB
localization.html 7KB
index.html 7KB
index.html 7KB
photo-manager.html 7KB
modal-form.html 6KB
show.html 4KB
toggle.html 4KB
hide.html 4KB
effect.html 4KB
switchClass.html 4KB
vertical.html 4KB
toggleClass.html 4KB
removeClass.html 4KB
共 541 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
- zyf2166062013-06-16很好用哦谢谢
- 跃海2014-11-01很好用,谢了lz
hcwd001
- 粉丝: 1
- 资源: 32
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- IMG_20240425_120538.jpg
- My Complete Genome_6k Base-Pairs of Phenotype SNPs_Complete Raw Data.zip
- qt 的mqtt测试demo
- 移动应用开发教程-zip.zip
- mosquitto-2.018-install-windows-x64
- FTPServer FTP 服务器,绿色免安装,单文件
- 梦畅语音点名软件,上课点名
- 利用ADNI数据集和标签,在tensorflow框架上使用tensorlayer接口,通过架构u-net实现海马体的分割
- Kutools for Word v9.0 office word 插件
- 修复Windows 10 LTSC 2021资源占用率高
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功