Ext.CompositeElement

The following examples use this HTML:

<div id='foo' class='x a'></div>
<div id='bar' class='x b'></div>

Query by selector to retrieve a CompositeElement:

var els = Ext.select('.x');

// Act on all elements at once:
els.highlight();

// Filter by an additional class:
// this will modify the current els CompositeElement
els.filter('.b');

// Custom processing:
els.each(function(el){
    el.id == 'foo' ? el.highlight() : el.frame();
});