$(".myClass").each(function() { // this = DOM Element => $(this) = jQuery Object });
On 17 Sep., 13:55, shapper <[EMAIL PROTECTED]> wrote: > Hello, > > How can I find all elements in a page given a class and pass to a > function? > > Or maybe better, how to I create a function that acts like a plugin, > i.e.: > > Applies something to all elements of a given class. > > Thanks, > Miguel