PDA

View Full Version : wildcard / multiple IDs



rmauser
20 May 2007, 12:44 PM
Hello, if I have say 5 boxes named myBox1, myBox2, etc. and I want a function applied to all 5 of them when a button is clicked. Can I use wildcards? For instance:

var elements = Ext.get("[how do I do the wildcard here???]");
var theFunction= function() {
elements.opacity(.5,true);
}

Ext.get('myButton').on('Click', theFunction);