Get previous object in selectors chain

Posted by Idsa on Stack Overflow See other posts from Stack Overflow or by Idsa
Published on 2010-04-10T16:38:32Z Indexed on 2010/04/10 16:43 UTC
Read the original article Hit count: 221

Filed under:

I have the following jQuery calls chain:

$(someSelector).nextUntil(".specialClass").addClass(classBasedSomeSelectorObject)

I need to addClass that's value is based on the object which was returned by someSelector.

Is there any way to implement it?

© Stack Overflow or respective owner

Related posts about jQuery