I have fetched a list of items from web service, now i want to store the item_name on which I have clicked. I cannot store that item name, if its \"bread butter\" , it stores on
DOM Storage Guide
Example
var string = 'Bread Butter';
localStorage.setItem("DishName", string);
alert(localStorage.getItem('DishName'));
On jsFiddle
I use Amplifyjs store library to access local storage.
It's simple to use/understand, works really well and it's cross browser (mobile browser as well)
Hope this Helps