curious81
asked on
how can i check all the checkboxes in struts?
I have got an iterator tag as follows...The rows are populated from the database. Now I have a select All check box which should select all the checkboxes..(rowUpdated) in the iterator.
<input type="checkbox" name="selectAll" onclick="check()">
<logic:present name="seasonForm" property="fieldVOList">
<logic:iterate id="fieldVOList" name="seasonForm" property="fieldVOList" type="com.vfc.stride.vo.Se asonVO" scope="session" indexId="index">
<tr valign="top" class="highlightblueshade" >
<td width="5%" height="24" align="center">
<html:checkbox name="fieldVOList" indexed="true" property="rowUpdated" value="true"/> 
</td>
<td class="textnormal" valign="middle" width="20%"> 
<bean:write name="fieldVOList" property="seasonDesc"/></t d>
</tr>
</logic:iterate>
</logic:present>
I am not able to obtain the fieldVOList in javascript..check() function. Can anyone help?? How is it to be done using struts???
<input type="checkbox" name="selectAll" onclick="check()">
<logic:present name="seasonForm" property="fieldVOList">
<logic:iterate id="fieldVOList" name="seasonForm" property="fieldVOList" type="com.vfc.stride.vo.Se
<tr valign="top" class="highlightblueshade"
<td width="5%" height="24" align="center">
<html:checkbox name="fieldVOList" indexed="true" property="rowUpdated" value="true"/> 
</td>
<td class="textnormal" valign="middle" width="20%"> 
<bean:write name="fieldVOList" property="seasonDesc"/></t
</tr>
</logic:iterate>
</logic:present>
I am not able to obtain the fieldVOList in javascript..check() function. Can anyone help?? How is it to be done using struts???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks for the point!
ASKER