如何取得动态生成的表格的某行某列的内容
<tr id= " <%=tabRow%> ">
<td scope= "col "> <%=user_id%> </td>
<td scope= "col "> <%=role_id%> </td>
<td scope= "col "> <%=car_no%> </td>
<td scope= "col "> <%=vehicle_team_name%> </td>
<td scope= "col "> <%=user_name%> </td>
<td scope= "col "> <%=company_name%> </td>
<td scope= "col "> <%=call%> </td>
<td scope= "col "> <%=address%> </td>
<td scope= "col "> <%=addressnumber%> </td>
<td scope= "col "> <%=email%> </td>
<td scope= "col "> <label> <a href= " "> 修改 </a> | <a href= "delete() " onclick= "return confirm( '确定删除! ') " > 删除 </a> </label> </td>
</tr>
<% tabRow++;%>
上面的程序是动态成一个表格,如何点击 删除 之后获得该删除行每列的值,JAVASCRIPT或者JSP的实现都可以.
------解决方案--------------------一般来讲直接传到函数里面就好了。
页面:
<td scope= "col "> <label> <a href= " "> 修改 </a> <a href= "delete() " onclick= "testFunction( ' <%=user_id%> ', ' " <%=role_id%> '); " > 删除 </a> </label> </td>
脚本:
<script language= "jav