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
Gabriel E
8,916 PointsWhat is wrong with this jQuery? (and vanilla JS)
So I'm working a Wikipedia viewer as a project, and I'm having some trouble. jsonData[2] returns a wiki article matching my search term on keyup. I have the limit of returns set to 8. What I need to do is iterate through the jsonData object, creating a new paragraph element and assigning it my pre-made class, then printing to the page with .html() so all the articles matching the search, up to 8, are printed. I used a for loop for this, and commented out the original print declaration, just for tests. If you see anything obvious, I would really appreciate the help. Thx!
http://codepen.io/xGabey/pen/yVrZze?editors=0010
~ Gabriel