jquery ui datepicker

[img]http://dl2.iteye.com/upload/attachment/0085/6218/73b8a9ff-895f-32cd-9a74-3867ede5205b.png[/img]
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="<%=basePath%>jqueryui/development-bundle/themes/base/jquery.ui.all.css">
<script src="<%=basePath%>jqueryui/development-bundle/jquery-1.9.1.js"></script>
<script src="<%=basePath%>jqueryui/js/jquery-ui-1.10.3.custom.js"></script>
<script src="<%=basePath%>jqueryui/development-bundle/ui/jquery.ui.core.js"></script>
<script src="<%=basePath%>jqueryui/development-bundle/ui/jquery.ui.widget.js"></script>
<script src="<%=basePath%>jqueryui/development-bundle/ui/jquery.ui.datepicker.js"></script>
<script src="<%=basePath%>jqueryui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js"></script>
<link rel="stylesheet" href="<%=basePath%>jqueryui/development-bundle/demos/demos.css">
<script>
$(function() {
$( "#startDate" ).datepicker({
showAnim:'drop',
showButtonPanel:true,
dateFormat:"yy-mm-dd",
});
});
$(function() {
$( "#endDate" ).datepicker({
showAnim:'bounce',
showButtonPanel:true,
dateFormat:"yy-mm-dd",
});
});
</script>
</head>
<body>

<p>startDate: <input type="text" id="startDate" name="startDate">
endDate: <input type="text" id="endDate" name="endDate"></p>

<div class="demo-description">
<p>The datepicker is tied to a standard form input field. Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay. Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.</p>
</div>
</body>
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值