can't seem to get this code to work, its not throwing errors, but something just isnt right as its not saving the cookie.
Basically on click i need it to check if the cookie is active, if not it needs to add it. This is remove a popup on the website.
$('.close-reveal').on(click, function(){
// if no cookie
if (!$.cookie('alert')) {
$('.subscribe-scroller').hide();
// set the cookie for 24 hours
var date = new Date();
date.setTime(date.getTime() + 24 * 60 * 60 * 1000);
$.cookie('alert', true, { expires: date });
}
});