I would like to give the ability to a visitor to mark the containers of his choice in order to give him the ability to display only his/her favorite containers. What I cannot achieve is store their favorites in a cookie so they do not have to mark them from the beginning every time they visit my website (there are 36 containers in total). I have read the jquery cookie plugin documentation, also searched stack overflow and followed several tutorials and still have not any clue on how to use it. Thanks.
HTML
<div class="panel-player-favorite-option">
<div class="not-favorite"></div>
</div>
<div class="panel-player-favorite-option">
<div class="not-favorite"></div>
</div>
<div class="panel-player-favorite-option">
<div class="not-favorite"></div>
</div>
<div class="panel-player-favorite-option">
<div class="not-favorite"></div>
</div>
JQUERY
jQuery('.panel-player-favorite-option').click(function() {
jQuery(this).children().toggleClass("favorite not-favorite");
});