Select two unique elements by ID
For some reason this answer has eluded me for a while now...
Let's say you have two elements, and you know their IDs; is there a way to select them both at the same time; something like $('#test #test2')?
I realize I could just select them both on two different lines and apply the same function, or use class or something to track them down; but sometimes I just want to grab two elements by ID and do the same thing to them. I assume I'm just missing the syntax.