I have this function in jQuery for hide elements when the user click in them:
$(".colabs-image").click(function() {
$( this ).parent().addClass('is-visited');
});
I want to use a cookie to store the elements in which the user has clicked and display as visited next time.
Whit $(this).parent().attr('href')) I have a ID for the element, but I know how to manage the cookie for this task.