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 JavaScript and the DOM (Retiring) Getting a Handle on the DOM DOM Selection - More Review

const studentInfo = documents.querySelectorAll("student-info"); Can anybody help me?

const studentInfo = documents.querySelectorAll("student-info"); Can anybody help me?

2 Answers

Tim Knight
Tim Knight
28,888 Points

Hi mo ode,

Take a look at your code again...

const studentInfo = documents.querySelectorAll("student-info");

Notice that documents should be singular reference the document. So that should just be document. Last note that with querySelector and querySelectorAll you need to pass in a CSS-style selector. Since we're looking for the class of student-info you'll want to include a period before the class name. So a revised version of your code would look like this:

const studentInfo = document.querySelectorAll(".student-info");

Hi Mo,

What's your specific question? You're asking for help but haven't provided any details in the way of what you need help with. What's the error you're running into? What are you hoping to do and what is the expected or unexpected behavior you're seeing that's thwarting you?