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
I don't quite understand exactly I am doing wrong with this.
I feel like this is the right way to select it and I even re-watched the videos. Am I missing something?
var inputValue = document.getElementById('linkName');
<!DOCTYPE html> <html> <head> <title>DOM Manipulation</title> </head> <link rel="stylesheet" href="style.css" /> <body> <div id="content"> <label>Link Name:</label> <input type="text" id="linkName"> <a id="link" href="https://teamtreehouse.com"></a> </div> <script src="app.js"></script> </body> </html>
Alex KoumparosPython Development Techdegree Student 36,886 Points
You are selecting the correct element, but the challenge isn't asking you to assign the element to the variable, but the value (provided by the user) into the
You need to access a specific property of the selector object and then assign that to the variable. The name of the variable will give a hint as to what property of the selector you are looking for.