
txt.setAttribute("id", "id")
txt.setAttribute("type", "text")
txt.onclick = function() {
WdatePicker({skin:'whyGreen',minDate:'1000-01-01',maxDate:'9999-12-31'})
}
document.body.appendChild(txt)
在jsp页面中使用js日期控件<script src="js/Calendar.js" type="text/javascript" language="javascript"></script>
加入到页面中 js/Calendar.js 这是控件的路径
<input name="txtDate" type="text" onclick="SelectDate(this)" readonly="readonly">
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)