![](/img/trans.png)
[英]How to fetch contents of clicked cell in a dynamic table using javascript
[英]Fetch the contents of a table row using javascript when a link is clicked
关键是访问该行,然后在该行内查找元素:
$('.your-link').click(function () {
const row = $(this).closest('tr');
const whatever = row.find('.whatever').text();
})
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.