You can use add();
var $foos = $('.foo');
var $foosAndBars = $foos.add('.bar');
or
var $allFoosAndBars = $allFoos.add($allBars);
More Related Contents:
- Build image slider with carouFredSel with this requirements? [closed]
- Best way to use Google’s hosted jQuery, but fall back to my hosted library on Google fail
- jQuery validate: How to add a rule for regular expression validation?
- How to bind ‘touchstart’ and ‘click’ events but not respond to both?
- How to disable anchor “jump” when loading a page?
- jQuery selector value escaping
- How to change page in jQuery mobile (1.4 beta)?
- Selecting the first “n” items with jQuery
- Detecting attribute change of value of an attribute I made
- jquery find versus context selection
- jQuery: how to trigger anchor link’s click event
- CORS jQuery AJAX request
- How to get a cookie from an AJAX response?
- How to display loading image while actual image is downloading [duplicate]
- How do I make jQuery wait for an Ajax call to finish before it returns?
- Getting 400 bad request error in Jquery Ajax POST
- jQuery Plugin: Adding Callback functionality
- jQuery parse JSON multidimensional array
- Dynamic Facebook Open Graph tags possible?
- Elements with $ in the id can’t be altered in jquery
- No response from MediaWiki API using jQuery
- How can I find the closest previous sibling with class using jQuery?
- How to load a Google Maps map inside of a hidden element
- How to preview selected image in input type=”file” in popup using jQuery? [duplicate]
- How do you trigger autocomplete “select” event manually in jQueryUI?
- Show/ Hide Table Column with colspan using jQuery
- Open YouTube video in Fancybox jQuery
- Jquery- Get the value of first td in table
- How to download a file through ajax request in asp.net MVC 4
- jQuery .slideRight effect