jQuery隐藏所有以' row'开头的类仅当父类为viewContainerTop时,才能排除"row2" [英] jQuery to hide all classes that start with 'row' except ‘row2’ only when the parent class is viewContainerTop
本文介绍了jQuery隐藏所有以' row'开头的类仅当父类为viewContainerTop时,才能排除"row2"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我对您的理解正确,请尝试以下操作: If I understand you correctly, try this: The 这也是一个实时示例,也显示了这一点(点击刷新以查看选择器使所需元素变暗) Here's a live example that shows this, too (hit refresh to see the selector dim the desired elements). 这篇关于jQuery隐藏所有以' row'开头的类仅当父类为viewContainerTop时,才能排除"row2"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!推荐答案
$('#viewContainerTop > [class^=row]').not('.row2').hide();
>
是可选的-排除与以row
开头的任何更深层对象的匹配.>
is optional--it excludes matching of any deeper objects that start with row
.
查看全文