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

How to focus an Element of another site in the same folder with JS / JQuery?

Hey, I'd like to append the "textarea" value from the modal window of the Index Page to a Feedback page. How should I target its container? For Example: the body has a <div class="container">

1 Answer

Steven Parker
Steven Parker
243,318 Points

Do I understand correctly that you want to move an element on one page to a completely different page? If so, there's no way to access anything on the old page once the browser moves to the new page.

So you'll need to store it into local storage before the page change, and then re-create it on the new page using the local storage.