Menu
I have this javascript code,
[code]function loadState() {
var state = $.cookie(‘toggleState’);
$(‘div.toggle’).each(function(i) {
$(this).toggle(state[i] == ‘Y’);
});
}
But im getting an error message in Internet Explorer “state is null or not an object”
on this line,
[code]$(this).toggle(state[i] == ‘Y’);
How do I fix this?