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


Code Challenge: Simple Email Validation Plugin

I am not able to perform "Step 2" of this code challenge. I tried everything possible. Could anyone help?

1 Answer

Show us what you currently have and what the question is and we might be able to help you debug.

This is the step 2 question: 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.

This is the code from step1:

<!DOCTYPE html> <html> <head> <title>Plugin</title> <style type="text/css"> .valid { color: green; } </style> </head> <body> <p> <input type="text" value="andrew@teamtreehouse"> </p> <p> <textarea>andrew@teamtreehouse.com</textarea> </p>

<script type="text/javascript" src="jquery.js"></script> <script type="text/javescript" src="validEmail.js"></script> <script type="text/javescript">

</script> </body> </html>