Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Interactive Web Pages with JavaScript Traversing and Manipulating the DOM with JavaScript Perfect

Jamahl Johnson
Jamahl Johnson
4,928 Points

Permanently Saving Changes

How would you make it so that the user's changes to the To Do list are saved permanently, meaning that if the user refreshes the page it won't reset all the values to their default "Pay Bills", "Go Shopping", etc. but will keep all of the changes the user made? I have a feeling that this would involve more complicated coding, and if so, is there a course on here that I can be referred to that would discuss a topic like that?

2 Answers

James Barnett
James Barnett
39,199 Points

You can use localStorage to save data to the user's browser, that's pretty straight forward once you know how JSON works.

Here's a very simple example I made to show you what I mean

further reading:

Benjamin Sauers
seal-mask
.a{fill-rule:evenodd;}techdegree
Benjamin Sauers
Full Stack JavaScript Techdegree Student 9,461 Points

That is much more in-depth than the course you are on. I would suggest to keep pushing through the basic JavaScript courses! You will eventually get to it!