目前页面是通过velocity的for循环把后台传过来的list一行一行的遍历显示在表格里,现在我想实现点击一个td表格的文字内容,获取到所点击的td表格的内容带着内容跳到后台处理,目前进行到#foreach($elem in $allElems)<tr> <td><a href="javascript:xxx(this)">$elem.属性1</a></td> <td><a href="javascript:xxx(this)">$elem.属性2</a></td> <td><a href="javascript:xxx(this)">$elem.属性3</a></td></tr>#end了,我想问下,怎么能在点击的时候通过原生js或jQuery获取到所点击的表格的内容?
添加回答
举报
0/150
提交
取消