A help?
I should remove a div (eg with name div1, it would be a markdown Source) in case there is a cookie in local storage (eg with name cookiedemo) with value “true”.
I don’t understand… I’m in trouble,
if i use js
<script>
if (localStorage.getItem('cookiedemo') !== "true") {
HERE I SHOULD REMOVE THE DIV;
} else {
//yes
}
</script>
Is there a stack that does this? or a suggestion code… help?
Thank you
Hi, I need something that checks if a cookie, in localstorace, whose name I decide is true or false. So the condition of having a divisor display based on true or false.
Only PHP COOKIE SWITCH BY @Jannis does this, but sadly it only works in Poster2.
I need it on a page without Poster.
For this I thought to find a solution in javascript.