I'm trying to read an array from a cookie like this:
var arr = $.makeArray($.cookie("mycookie"));
jQuery.each(arr, function() {
$('#' + this).removeClass('collapsed');
});
The problem is it works only with the first item from the array. Can you help?