一个简单的时间插件

本文分享了一个简单实用的jQuery日期选择器插件,通过简单的调用即可实现日期的选择,并支持自定义回调事件。该插件能够显示节假日,并提供丰富的样式定制。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在此分享一个简单好用的jqury时间插件

展示代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>显示节假日的jQuery日期选择器代码</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/hDate.js"></script>
<link href="hDate.css" rel="stylesheet" />
<style type="text/css">
html, body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
outline:none;
}
#Text1,#Text2{padding:7px 5px;outline:none;width:200px;border-radius:3px;border:1px solid #ccc;}
</style>
</head>
<body>
<div style="width:520px;margin:40px auto 0 auto;"> 
简单调用:<input id="Text1" onClick="calendar.show({ id: this })" type="text" /><br/><br/>
回调事件:<input id="Text2" type="text" />
</div>
<script type="text/javascript">
$("#Text2").click(function (e) {
var ths = this;
calendar.show({
id: this, ok: function () {
alert(ths.value);
}
});
});
</script>
</body>
</html>


还有js、css等具体代码:

链接: http://pan.baidu.com/s/1gfHswXt 密码: c6zc

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值