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

JavaScript

stuck on "Open a new script tag and using the "validEmail" plugin" challenge.

I can't figure out what I am doing wrong on this challenge. Any help is appreciated. Thanks.

 <script type="text/javascript" src="validEmail.js"> 
var isValid = $('input').validEmail();
</script>

3 Answers

I figured it out. Sorry for the post.

Johannes Böhm
Johannes Böhm
5,957 Points

And how did you figure it out? Would be great if you would show us all your hint. thanks

Tom Mertz
Tom Mertz
15,254 Points

I think at that part you actually need a new entire script tag <script type="text/javascript"> //code here</script>

Did either of you figure out how to pass the 3rd objective? I can't seem to get past it.

This one: "On the next line select the "textarea" call "validEmail" and pass in the parameters of "on" set to "keyup", and "success" and "failure" set to empty anonymous functions." Once I finish this step, my objective 2 says it's wrong.

Chris Dziewa
Chris Dziewa
17,781 Points

I was having trouble with this one too. Hope you figured it out. I found that I had forgotten the first curly brace inside the parentheses and completely skipped the word on. This is that snippet ->>>> validEmail({on: