I've had a good look and can't seem to find out how to select all elements matching certain classes in one jQuery selector statement such as this:(我看起来很好看,似乎无法找到如何在一个jQuery选择器语句中选择匹配某些类的所有元素,如下所示:)
$('.myClass', '.myOtherClass').removeClass('theclass');
Any ideas on how to achieve this?(关于如何实现这一点的任何想法?) The only other option is to do(唯一的另一种选择是做)
$('.myClass').removeClass('theclass');
$('.myOtherClass').removeClass('theclass');
But I'm doing this with quite a few classes, so it requires much code.(但我正在使用相当多的类,所以它需要很多代码。)
ask by Kezzer translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…