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

JavaScript Build an Interactive Website Form Validation and Manipulation jQuery Utility Methods

JavaScript / Form Validation and Manipulation / JQuery Utility Methods / Task 2

I completed the first task, and I do not know where to begin with the second task. I have tried and failed over the course of an hour.

First Task:

var $required = $('.required');

var values = $required.map(function(){ return $(this).val(); });

Second Task: ?

@teamtreehouse A more in-depth explanation of JQuery would be beneficial.

2 Answers

Bradan Jackson
Bradan Jackson
20,558 Points

Please post what they ask you to do in this task.

Task 2:

Using the 'inArray' method check if the array contains the string 'Andrew'