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 trialJordan Anderson
19,560 Pointsemail validation plugin challenge 3//4
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.
var isValid = $("input").validEmail();
$("textarea").validEmail({on: "keyup", success: _success_handler_, failure: _failure_handler_});
I'm sure I'm doing something silly, but can't seem to figure it out. I'm recieving the: You didn't call 'validEmail' on the selected textarea.
1 Answer
Liz Karaffa
17,576 PointsOk you're close. "success_handler" and "failure_handler" are place holders for you, giving you a hint of what you should be entering. Essentially, you want your anonymous functions to replace those place holders.
Anonymous functions look like: function(){}
Hope this helps!
Jordan Anderson
19,560 PointsJordan Anderson
19,560 PointsThank you Liz. I had tried that before but i realize now that i left off the "{}" on the function(). Silly me!