Skip to main content
Participant
December 13, 2018
Answered

Check value of an object in localstorage

  • December 13, 2018
  • 1 reply
  • 358 views

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.

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer BenPleysier

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.

1 reply

BenPleysier
Community Expert
BenPleysierCommunity ExpertCorrect answer
Community Expert
December 14, 2018

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.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!