Store JSON Data in local Storage (Java Script)
[
"friends": [
{
"id": 0,
"name": "Daugherty Gould"
},
{
"id": 1,
"name": "Foley Carpenter"
},
{
"id": 2,
"name": "Brewer Vinson"
}
]
localStorage.setItem('firstName',data.friends.name );
I am not getting the right output with above code. How can I get all the names in localstorage.
Thank you in advance!
-
ltrain_riders -
[ 1 ] Thanks
SignatureDownload Premium WordPress Plugins and Themes{{ DiscussionBoard.errors[11621098].message }} -