在这里让我们一起学习,一起提高!
感觉非常好用的日历控件,非本人原创,原代码不能完美绑定文本框,本人修改后可以绑定文本框内的时间,同时支持IE和firefox.
下载文件 (已下载 968 次)

作者:smarteng
<input name="member.birth" type="text" value="1982-1-1" size="14" readonly onClick="showcalendar(event, this);" onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" />
1.readonly : 是让控件只读,不可以直接输入
2. onClick="showcalendar(event, this);" : 单击显示日历控件
3.onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" : 显示日历,并根据条件初始化日历控件的值
下载文件 (已下载 995 次)
<input name="member.birth" type="text" value="1982-1-1" size="14" readonly onClick="showcalendar(event, this);" onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" />
1.readonly : 是让控件只读,不可以直接输入
2. onClick="showcalendar(event, this);" : 单击显示日历控件
3.onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" : 显示日历,并根据条件初始化日历控件的值
