How to assign value to my checkbox if it is unchecked
Posted on 2006-11-28
I have table in a form and the table has many rows.
In each row I have check box its name is name = "issueItem1" .. it could be issueItem2 or 3 .. according to the row index.
When it is checked, the value = "issue<%= i %>" .. Where i is the row index , but if the check box is unchecked it gives me null value in my Servlet
here is my tag:
<td class = "td"><input type="checkbox" name="checkIssue<%=i%>" value="issue<%=i%>"></td>
so how I can assign value to my checkbox if it is unchecked?
any idea ? .. =)