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 trialAndrew Whitfield
5,239 PointsError 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
Andrew Whitfield
5,239 PointsOn this url:
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 ;)?
Andrew Whitfield
5,239 PointsOn this lesson:
You may want to add the link to the documentation for jQuery's each to:
Andrew Whitfield
5,239 Pointshttp://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?