I'm building an array with some elements like this :
var listAccordions = [];
$("#accordeon ul.sub-menu.ui-accordion").each(function() {
listAccordions.push("#" + $(this).parent().attr('id') + " ul.sub-menu");
});
everything works fine here, i've got my array and it's nice, now I want to use it like this :
$( listAccordions ).hide();
but this doesn't seem to work ?
Thank you very much for your help