As the title says, I'm trying to select some divs by their id, and then store them in an array, I know I can simply put the variables as parameters separated by comma, but I prefer to store. What I've done is:
var nationality = jQuery('#nationality');
var years = jQuery('#years');
var collection = [nationality, years];
jQuery('#mydiv').append(collection);