Not really. My question is there function like .get() that returns
jQuery object instead of dom element

On Jun 16, 2:04 pm, waseem sabjee <[email protected]> wrote:
> 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. <[email protected]> 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');

Reply via email to