Selection state
Some methods create a new jQuery object based on the current jQuery object. When this happens, a new object will be pushed onto the stack, which is stored inside the object. jQuery provides methods to work with this stack.
method | description |
---|---|
addBack([sel]) | Adds the previous selection on the stack to the current selection, optionally filtered by a CSS selector. |
end() | Ends the most recent filtering operation in the current chain and returns previous state. |