Is it possible to create a cookie using arrays?
I would like to store a[0]=\'peter\', a[\'1\']=\'esther\', a[\'2\']=\'john\' i
Create array in cookie using jQUery?
var list = new cookieList("test"); $(img).one('click', function(i){ while($('.selected').length < 3) {
$(this).parent()
.addClass("selected")
.append(setup.config.overlay);
//$.cookie(setup.config.COOKIE_NAME, d, setup.config.OPTS);
var index = $(this).parent().index();
// suppose this array go into cookies.. but failed
list.add( index );
var count = 'You have selected : ' + $('.selected').length + ' deals';
if( $('.total').length ){
$('.total').html(count);
}
} });