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
Wesley Haines
4,934 PointsJQuery Utility Methods code challenge 1 of 2
Really having problems learning jQuery... Just do not understand these prompts.
"Call 'map' on the inputs with the class 'required' and return each of their values and store it in a variable named 'values'."
I am not sure how to store the information in the variable 'values.'
var $required = $(".required");
function containsBlanks () {
var $values = $(".value");
var blanks = $required.map(function(){
$(this).val() == "");
});
return $.inArray(true, blanks) != -1;
};
James Barnett
39,199 PointsYou didn't actually post a link there Adam Sackfield
Adam Sackfield
Courses Plus Student 19,663 PointsDamn markdown sheet.
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsSee this [post]("Call 'map' on the inputs with the class 'required' and return each of their values and store it in a variable named 'values'.") for help.