I want to hide a div if the value of a localstorage object is true. See below screenshot of the Key which is _vxData and the object/array isUserLoggedIn. Using Jquery or vanilla js and css.
Copy link to clipboard
You need to retrieve the value from the local storage and use that value in a script to toggle/set the display property.
Have a look at Using the Web Storage API | MDN or Google the subject.