tags:

views:

76

answers:

1

I've got a cached jquery object setup like this

var comments = $('li.comment');

When creating new elements, is there an easy way to update the comments objects instead of redfining it? I'm looking fot something like

comments += $('li.newcomment');

Is this possible?

+4  A: 
$("li.comment").add("li.newcomment");
cletus
Thanks, I knew it was simple... :)
yoavf