I'm wondering if it's possible to do something like this in jQuery:
$( [ $selector1, $selector2, document.getElemetByID( 'test' ) ] )
EDIT: I'm lazy. $selector1 and $selector2 are already jQuery objects. I am trying to avoid using $.each.
Here's a more in-depth example of what I'm trying to do:
var $lastLink = $( '.links' ).filter( ':last' );
var $nextThumbnail = $( '.thumbnail.current' ).next();
Let's say I want to add a class of active to those things and I would like to keep it as simple as possible - therefore I am looking for something with similar syntax to what I posted before.
$( [ $lastLink, $nextThumbnail ] ).addClass( 'active' );
$("selector1", "selector2", document.getElementById("test"))comma delimit for multiple selectors$("selector1, selector2, #test")). Hard to tell, based on how he's written it.