Skip to content Skip to sidebar Skip to footer

How To Store Items In Local Storage In Jquerymoblie

I have 4 pages like A,B,C and D. A have fruits names, B have flowers names .4 Pages flow like this <-- A -->C -->D B -->C When i went to C through A,C hav

Solution 1:

Try using JSON.parse(sessionStorage.getItem("forAllGridItems")); in the last line when you are updating the list.

I am quite not sure why you would want to use both sessionStorage and localStorage

Which ever storage option you choose to use, it's recommended by most resources that you go with localstorage.setItem("key", "value");, and remember to use JSON.stringify() when working with any data types other than strings.

Post a Comment for "How To Store Items In Local Storage In Jquerymoblie"