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 trialNathan Hall
4,928 PointsStrange error in challenge task 2 of 3 - Form Validation and Manipulation
Hi,
I added the code from task 2 and I get an error message that task 1's code is no longer valid. Here is my code
var $required = $(".required");
//task 1 function isValidEmail(email) { return email.indexOf("@") != -1; }
//task 2 function requiredValues () { var reqvalues = New Array(); $required.each(function() { reqvalues.push($(this).val()); }); return $reqvalues; }
2 Answers
Jacob Miller
12,466 PointsTake a look at this thread: https://teamtreehouse.com/forum/jquery-challenge-help
Jason Anello
Courses Plus Student 94,610 PointsYou have "New" capitalized. Try changing to lower case and see what happens.