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 Pagination & Content Filter

Harry Beckwith
Harry Beckwith
13,452 Points

Unobtrusive JavaScript Tech degree JavaScript project 2, how to get the search functioning through js?

Hi,

I have managed to get the search working correctly by placing it into the html. However this project requires the search section to be added through javascript. I have appended the search section, however this stops the search from functioning. Here is a link to my Codepen http://codepen.io/fun/pen/VjraNd

Any pointers would be appreciated =)

Thank you,

Harry

Steven Parker
Steven Parker
229,771 Points

I couldn't see the problem. The Codepen seems to work fine.

1 Answer

Harry Beckwith
Harry Beckwith
13,452 Points
  • Question Resolved *

Hi Steven,

Sorry the pen has been updated since, i should have left a comment on here. Was event delegation that was preventing the search functioning.