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!
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
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.