I'm trying to change the content of a cookie when the user click on a button, and refresh the page after this.
My cookie is named cookieConsent
and has the content {"isCookieBarHidden":true,"cookiePreferences":{"functional":true,"userPreferences":true,"analytics":true,"advertisements":true}}
I'm trying to change "isCookieBarHidden":true
to false
on click on a button with an id, and reload the page after to display again the cookiebar of a website.
Is it possible to do this with pure Javascript ? If not, how in jquery ?