惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tailwind CSS Blog
The GitHub Blog
The GitHub Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
量子位
Martin Fowler
Martin Fowler
月光博客
月光博客
P
Proofpoint News Feed
博客园_首页
Y
Y Combinator Blog
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
H
Help Net Security
U
Unit 42
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell

博客园 - 大力哥的技术

多边形效果 完成卸载vs2010后再安装 图片集合,可用作商品列表 无可奈何花落去 Uncaught TypeError: Cannot read property 'msie' of undefined CodeGenerator.cs SQL GETDATE()日期格式化函数 股票操作要点 用户中心 - 博客园 京东分页 相册分类列表页 在线运行Javascript,Jquery,HTML,CSS代码 点击事件后动画提示 近舍网临时笔记 一些广告代码 爱可有—之最经典 爱可有网络社区需要定义 鼠标移动时缩小图片显示说明 一些正则验证-JS
年月日控件
大力哥的技术 · 2014-04-11 · via 博客园 - 大力哥的技术
<select id="Year" name="Year" class="sys_selectB mr10">
</select>
<select id="Month" name="Month" class="sys_selectB mr10">
</select>
<select id="Day" name="Day" class="sys_selectB mr10">
</select>
$("#City").change(function () {
if ($("#City").val() != "0")
Biz.Customer.Register.buildWarningMessage(jQuery("#City"), 0);
});
for (var y = 2014; y > 1960; y--) {
$("#Year").append(jQuery("<option></option>").val(y).html(y));
}
for (var m = 1; m < 13; m++) {
$("#Month").append(jQuery("<option></option>").val(m).html(m));
}
InitDays($("#Year").val(), $("#Month").val());
$("#Year,#Month").bind("change", function () {
InitDays($("#Year").val(), $("#Month").val());
}); 

function TGetDaysInMonth(iMonth, iYear) {
var dPrevDate = new Date(iYear, iMonth, 0);
return dPrevDate.getDate();
}
function InitDays(iYear, iMonth) {
var dDate = new Date(),
daysInMonth = TGetDaysInMonth(iMonth, iYear),
str = "";
$("#Day").empty();
for (var d = 1; d <= parseInt(daysInMonth); d++) {
if (d == dDate.getDate()) {
str = "<option value=" + d + " selected=true>" + d + "</option>";
} else {
str = "<option value=" + d + ">" + d + "</option>";
}
$("#Day").append(str);
}
}