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

General Discussion

Error Message bug on Lesson

Hi,

On "Text Input Events", if you typo next to nexT, you get the following bug on validation:

Bummer! null

Very interesting.

Thanks

3 Answers

On this url:

http://teamtreehouse.com/library/websites/build-an-interactive-website/form-validation-and-manipulation/modifying-attributes

There's another bad-practice being shown for if/else usage.

When teaching if/else it would be prudent to teach the correct use of the block delimiters { and }.

Someone who isn't competent with JavaScript or jQuery may not understand the implications of leaving these off when writing if/else statements.

I'd suggest that that section of the video is spliced with one with better coding practice for beginners and maybe mention shortcut types of coding practice in a separate video.

Andrew - please don't do shortcuts in learning videos ;)?

http://teamtreehouse.com/library/simple-email-validation-plugin

In the "success" function add the class of "valid" to the textarea that's had a the "keyup" event triggered

Remove 'a' from before 'the' in this instruction?