Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种简单的方法可以选择靠近选中复选框(相同的 tr fe)的某个类的所有项目,而无需两次迭代树?
尝试:
$('input:checked').closest('tr').find('.yourClass')