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.
我将能够找到元素的第一个隐藏父项以使其可见。
尝试这个 whitout 成功:
$('input[name="toto"]').parents(":hidden:first").show();
关于这个的想法?
为什么不只是隐藏.show() 所有祖先元素:
.show()
$('input[name="toto"]').parents(":hidden").show();
事实上,为什么要浪费时间过滤掉所有:hidden祖先show()?
:hidden
show()
$('input[name="toto"]').parents().show();