Hello,

I have a jsp code which goes like this

<%
ArrayList<ReportList>lst1 = new ArrayList<ReportList>();
lst1 = (ArrayList)session.getAttribute("reportParam");


if(lst1!=null)
{

for(int i=0;i<lst1.size();i++){

ReportList rl = (ReportList)lst1.get(i);
%>

<tr class="table_data">
<td width="90px"></td>
<td class="smalltext" width="75px" align="right"><b><%=rl.getRPM_NAME()%><span style="color:Red;">*</span></b></td>
<td ><input type=text class="smalltext" name="PERIOD<%=i%>" value="<%=rl.getRPM_DEFAULT_VALUE()%>" maxlength="20"></td>
</tr>
<% }

}
%>

Here the number of labels and textboxes are generated dynamically.

How do I check the textboxes are not empty using javascript
when I submit the form

Thanks.