1,出生日期——再次选择后返回数据没有立即验证,出生日期总提示需大于12岁
修改文件:js/calendar.js修改一下两个方法:
(13,14,21,29行)+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- function GetDate(idname,e){
- var sDate;
- var getElement = is_ie ? event.srcElement : e.target;
- if(getElement.tagName == "TD"){
- if(getElement.innerHTML != ""){
- inYear=getObj('Year').value;
- inMonth=getObj('Month').value;
- if(inMonth<10){inMonth="0"+inMonth;}
- inDay=getElement.innerHTML;
- if(inDay<10){inDay="0"+inDay;}
- sDate = inYear + "-" + inMonth + "-" + inDay;
- getObj(idname).value=sDate;
- getObj(idname).focus(); //获得焦点
- HiddenCalendar(idname);
-
-
- }
- }
- }
-
- function HiddenCalendar(idname){
- //关闭选择窗口
- getObj("Calendar").style.visibility='hidden';
- var objllist=document.getElementsByTagName('select');
- for(var i=0;i<objllist.length;i++)
- {
- objllist[i].style.visibility="";
- }
- getObj(idname).focus && getObj(idname).blur();//失去焦点
- }
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
阅读(791) | 评论(0) | 转发(0) |