How to combine two jQuery results
Another solution is to use jQuery.merge() (jQuery > 1.0)
Description: Merge the contents of two arrays together into the first array.
So you could simply use it to merge both result :
var $allFoos = $('.foo');
var $allBars = $('.bar');
var $allFoosAndBars = $.merge($allFoos, $allBars);
You can use add();
var $foos = $('.foo');
var $foosAndBars = $foos.add('.bar');
or
var $allFoosAndBars = $allFoos.add($allBars);