> > Brandon's point is that the "if" is implicit. You can do this > regardless of whether or not there are any images on the page: > > $('img').doSomething();
Yes that's fine - but doSomething() has to be defined as a method on the jQuery object. I want to call an anonymous method (or one defined elsewhere) and have access to the matched elements. James