Get previous object in selectors chain
- by Idsa
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?