Is is possible to concatenate two jQuery selectors without creating a new selector in the process? An example would be as follows:
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
</head>
<body>
<span class="a">A</span>
<span class="a">B</span>
<span class="b">C</span>
<script language="JavaScript" type="text/javascript">
<!--
var a = $('.a');
var b = $('.b');
var c = a.add(b);
console.log(a);
console.log(b);
console.log(c);
//-->
</script>
</body>
</html>
Which yields the following selectors when written as above:
a = [ A, B ]
b = [ C ]
c = [ A, B, C ]
I would like to modify it to produce:
a = [ A, B, C ]
b = [ C ]
c = whatever
Without creating a new selector in the process, the equivalent of using an Array's "push" method on each element in the selector.