var collection = $("input"); collection.each(function(i) { collection.addClass("blah"); if(i == 3) {
} }); did you mean something like that ? On Tue, Jun 16, 2009 at 12:59 PM, Lauri B. <lau...@gmail.com> wrote: > > I have collection: var collection = $(input); > var i = 3; > > Is there easier way to get third jquery object from collection. > Currently i'm using method like > $(collection.get(i)) or $(collection[i]) > > But i think something like this could be more comfort: > example: collection.get(i).addClass('blah');