作者: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=''" : 显示日历,并根据条件初始化日历控件的值
