In my JSP page, I am using a 'for' loop to display certain amount of records. The code snippet is as below:
Code:
<%
int maxRow = 3;
for (int i = 0; i < maxRow; i++) {
%>
<tr id="rowID">
<td></td>
<td></td>
</tr>
<%
}
%>
Since the 'maxRow' is 3, I will get 3 rows with id = rowID. Now, instead of using jsp expression tag (var rowNum = <%= maxRow %>), is it possible that we could use javascript method to get the total number of row with id = rowID ?
Thanks for reply.