Computing next row value based on previous in jsp/jstl in jquery for a dynamically generated table
<table> <c:forEach items = “${userData}” var = “userData”> <tr> <td> $ {dob} </td > </tr> <!–need to calculate age based on dob in jquery –> <tr> <td><span> $ {age}</span></ td>< /t > </c:forEach> </table> function calculateAge(){ } How I can call calculateAge() function on row 2 ? javascript jquery jsp jstl