Answer the question
In order to leave comments, you need to log in
How should sessionStorag be used?
Hello dear.
The question is the following: having little experience in developing in javaScript, I want to use sessionStorage as a place to store global variables - is it possible to use it this way?
You may be wondering, why exactly?
To clarify - my "genius" plan is to store objects in SS that encapsulate some DOM objects (I think it will be easier than using jQuery) and implement a set of functions to work with them accordingly. I am strongly tormented by doubts about the adequacy of this UI development method, since I am a complete zero in js. If you have experience and can offer a more rational solution, I will be sincerely grateful for valuable advice.
Answer the question
In order to leave comments, you need to log in
God, of course not! Drink holy water so that demons don't cloud your mind anymore :)
Why was this necessary? What prevents each time getting a reference to the element through the jquery selector?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question