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
Not completely sure I understand what you mean. You want to store the jQuery objects so you don't have to continually search for them like some sort of cache?
var cache = new Object();
cache['#object1'] = $('#object1');
cache['#object2'] = $('#object2');
To retrieve the jQuery values, you'd merely have to call cache['#object1'].