I i have a button which show/hide a div on onClick event. I want to remeber the state, on click keep div hidden for one day (set cookie which expires) and on another click keep div showed (delete cookie).
I need remember this state on whole domain.
What is the easiest way? I´am the beginner, I prefer jquery-cookie - it is possible to use? I can´t find any example where is this explained on onClick event.
Thanks alot!