jQuery外掛 下拉列表日期選擇控制元件
阿新 • • 發佈:2019-01-25
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>jQuery外掛之下拉列表日期控制元件 - jQuery.jSelectDate</title><script type="text/javascript" src="scripts/jquery.js" ></script><script type="text/javascript" src="scripts/jquery.jSelectDate.js"></script><script type="text/javascript">
$("body").ready(function(){
//應用方法 $("input.date").jSelectDate({
css:"date",
yearBeign: 1995,
disabled : false
});
})
$(this).jSelectDate
</script></head> <body><input type="text" id="txtName" class="date" value="2005-3-22"/><button onclick="alert($('#txtName').val());">當前值</button><br /><br /><input type="text" id="txtDate2" class="date" value="1995-5-2"/></body></html>
$("body").ready(function(){
//應用方法 $("input.date").jSelectDate({
css:"date",
yearBeign: 1995,
disabled : false
});
})
$(this).jSelectDate
</script></head>