如何获得具有属性的衣柜?
$('tr[data-order]:closest', $(this)).css({background:'red'});
我需要使用属性 data-order
获取父 tr
最佳答案
$('theStartingObject').closest('tr[data-order]');
关于javascript - 使用 attr() 获取最接近的(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7429622/