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
Kyle Brooks
6,753 PointsCode Challenge: jQuery Plugins - Simple Email Validation Plugin - Task 2 of 4
Task: Open a new script tag and using the "validEmail" plugin, store in a variable "isValid" whether the email address in the text input is valid.
I tried the following:
<script>
$(text).validEmail();
</script>
but I'm sure that's way off...
2 Answers
Riley Hilliard
Courses Plus Student 17,771 PointsYou are almost there, I am not going to give you the answer, but I'll get you close:
Everything inside /* */ is instructional,
<script>
var /* The variable name they want you to assign */ = $(' /* The CSS selector of the input element that you are validating */ ').validEmail();
</script>
Kyle Brooks
6,753 Pointsgot it! You're awesome! Thanks for the help.