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
steven schwerin
7,722 PointsjQuery Checking Values 2/3
Can anyone lend me a hand with the code below? I read some of the other posts and still can't seem to get this to work.
'''var $required = $(".required"); var values = new Array(); function requiredValues(){ $required.each(function(){ values.push($(this).val());};); return values;'''
Thanks in advance!
srs
3 Answers
Younes RAFIE
Courses Plus Student 2,055 Pointsplease use markdown to ease code readability
steven schwerin
7,722 PointsThis is what I have so far. I am new to markdown. Sorry, I will have to work on that a bit.
''' var $required = $(".required"); var values = new Array(); function requiredValues(){ $required.each(function(){ values.push($(this).val());};); return values; '''
steven schwerin
7,722 PointsI guess that did not do the trick.