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
input.className returns blank
Followed along with this video, and it's all good. I'm just curious though, when I used the console to get the class (input.className) it just showed "".
The HTML input element has a class assigned to it, I'm just curious why this wouldn't work? Has something changed since this video was made?
You know what... I'm an idiot - just noticed the lack of a '=' when declaring the classes.