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 trialBart Wiharto
2,978 PointsHow can I make a list of previews instead of overwriting the old preview text with a new text after every click event?
Like making a list instead of overwriting.
1 Answer
Vasanth Baskaran
4,333 PointsOne way of doing is create an parent element for the title and content and on each time we can append to the parent element