问题描述
datepick是动态生成的,当选择第2个的时候,焦点就不在了,不能将值存入TEXT中。代码如下:<inputtype="hidden"name="pastEmploymentRcdCount"id="pastEmploymentRcdCount"value="<%=rcdCount%>"><pclass="font-blacktitle"><bean:messagekey="ERECRUIT_LABEL_APPLICATION_FORM_CAREER_PAST_EMP"/></p><tableid="PastEmploymentTable"border="0"cellpadding="0"cellspacing="1"width="100%"><%for(inti=0;i<=rcdCount;i++){StringpropertyOrg="pastEmploymentOrg["+i+"]";StringpropertyDateJoin="pastEmploymentDateJoin["+i+"]";StringpropertyDateLeft="pastEmploymentDateLeft["+i+"]";StringpropertyInitialPosition="pastEmploymentInitialPosition["+i+"]";StringpropertyCurrentPosition="pastEmploymentCurrentPosition["+i+"]";StringpropertyInitialSalary="pastEmploymentInitialSalary["+i+"]";StringpropertyCurrentSalary="pastEmploymentCurrentSalary["+i+"]";StringpropertyTOS="pastEmploymentTOS["+i+"]";StringpropertyNOJ="pastEmploymentNOJ["+i+"]";StringpropertyReason="pastEmploymentReason["+i+"]";%><tr><td><tableborder="0"cellpadding="0"cellspacing="0"width="100%"><tr><td><bean:messagekey="ERECRUIT_LABEL_APPLICATION_FORM_CAREER_PAST_EMP_ORG"/></td><td>:</td><tdcolspan="5"><html:textproperty="<%=propertyOrg%>"styleId="<%=propertyOrg%>"styleClass="txtPEOrganisation"size="33"maxlength="100"/></td></tr><tr><tdwidth="20%"><bean:messagekey="ERECRUIT_LABEL_APPLICATION_FORM_CAREER_PAST_EMP_DATE_JOINED"/></td><tdwidth="2%">:</td><tdwidth="27%"><html:textproperty="<%=propertyDateJoin%>"styleClass="format-d-m-ydivider-slashrange-low-nullrange-high-null;font-small"styleId="<%=propertyDateJoin%>"size="28"maxlength="10"/><br><divclass="font-error-red"id="dateJoinedError_<%=i%>"></div></td>用firefox也检查了,第一个pastEmploymentDate代码如下:<tdwidth="27%"><inputid="pastEmploymentDateJoin[0]"class="format-d-m-ydivider-slashrange-low-nullrange-high-null;font-small"type="text"value=""size="28"maxlength="10"name="pastEmploymentDateJoin[0]"><aid="fd-but-pastEmploymentDateJoin[0]"class="date-picker-control"href="#"title="ShowCalendar"><span> </span></a><br><divid="dateJoinedError_0"class="font-error-red"></div></td>第二个pastEmploymentDate代码如下:<<tdwidth="27%"><inputid="pastEmploymentDateJoin[1]"class="format-d-m-ydivider-slashrange-low-nullrange-high-null;font-small"type="text"value=""size="28"maxlength="10"name="pastEmploymentDateJoin[1]"><aid="fd-but-pastEmploymentDateJoin[1]"class="date-picker-control"href="#"title="ShowCalendar"name="fd-but-pastEmploymentDateJoin[1]"><span> </span></a><br><divid="dateJoinedError_1"class="font-error-red"></div></td>
解决方案
解决方案二:
该回复于2011-06-15 16:16:44被版主删除