我想编写一个优雅的解决方案,通过在不同上下文列表中搜索来选择相同的标签
//i have this not editable code
var c1$ = $('#context1'),
c2$ = $('#context2'),
c3$ = $('#context3');
//I want to improve the code and 'only from here on
var selector = 'a.select';
c1$.find(selector).css('color','red');
c3$.find(selector).css('color','red');
我正在寻找任意数量的上下文的解决方案