Maybe I'm not understanding the point of .add() but it doesn't really do what I'd expect nor can I figure out how to do what I thought would be simple.
I want to combine 2 jquery objects. var $obj1 = $(".stuff"); var $obj2 = $(".morestuff"); $obj1.add($obj2); alert($obj1.length); This doesn't do anything, it looks like .add() only accepts selection strings which in my example would work but in what I really need to do I have no selection string which would find the specific jquery objects.