Obviously it\'s a good idea to store jQuery selectors in variables if they are used more than once (not a good idea if used only once).
My question is, how do y
You can use .add():
var object1 = $('#object1'), object2 = $('#object2'); object1.add(object2).addClass('couple');
Or,
var multiple = [object1[0], object2[0], ...]; $(multiple).addClass('party');