Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
What is the point of the step to select #fullName?
It doesn't do anything, right? Couldn't you eliminate that line? This took me a little longer than I was expecting because I was trying to think if there was some other answer I was missing.
0yzh 17,276 Points
The step to select the element with the id = #fullName is so you can take the value that the user entered into the prompt("What is your full name?"), and display it back on the page. In this case, the input element with the id of #fullName.
//Show Prompt Window and store value var fullName = prompt("What is your full name?"); //Select Input with the id of #fullName $('#fullName').val(fullName); //Insert value in to full name input
Hi Christian, This challenge is having you select the #fullName input so you can replace it's value with the full name collected via the prompt.