我建了一个,希望当选中radio时,能同步得到该条记录的end_date的值,请问javascript函数中该怎么写?谢谢!
<logic:iterate name= "deptTypeInfoForm " id= "infoVO " property= "deptTypeInfos ">
<tr>
<td class= "table_inner " align= "center "> <html:radio name= "deptTypeInfoForm " property= "deptTypeId " idName= "infoVO " value= "deptTypeId "/> </td>
<td class= "table_inner " align= "center "> <bean:write name= "infoVO " property= "description "/> </td>
<td class= "table_inner " align= "center "> <bean:write name= "infoVO " property= "startDate "/> </td>
<td class= "table_inner " align= "center "> <bean:write name= "infoVO " property= "endDate "/> </td>
<html:hidden name= "infoVO " property= "deptType "/>
</tr>
</logic:iterate>
------解决方案--------------------
你这样写是不可能的,bean:write 写到页面上就是一个字符串,除非你写成一个控件.比如用一个hidden框来保存值