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
missgeekbunny
37,033 PointsCode Challenge Trouble
I've been trying the jquery code challenge for Simple Email Validation Plugin and I keep getting caught in a loop . At step 2 I add
var isValid = $(":input").validEmail();
And it says correct and moves on. I go to add part 3:
$(":textarea").validEmail(on:"keyup", success:function(), failure:function());
And it says that part 2 is broken and when I look at the part 2 to validate it says it's because validEmail is not called on the input. Any ideas how to fix it?
P.S. I suck with Markdown so please forgive the lack of formatting.
2 Answers
Leela Narasimha Reddy
29,035 PointsYou are using the selector $(":textarea"). I think it should be $("textarea"). no colon inside the selector. This will work i think
missgeekbunny
37,033 PointsIt's not making a difference at all. It still says that task 2 is wrong and I need to go fix it even with that change.
But I did find my answer after googling a while: https://teamtreehouse.com/forum/jquery-plugins-simple-email-validation-plugin-challenge-3-of-4
James Barnett
39,199 PointsJames Barnett
39,199 PointsRemember our goal on the forum is give help not answers, next try giving an explanation and/or a hint instead.
Need more explanation on the distinction check this out.