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

PHP Extending Object-Oriented PHP Extending the Family Extending a Child

Darrell Conklin
Darrell Conklin
21,988 Points

Javascript Not Working

Followed teachers instructions but the Code of Conduct does not toggle.

If it works fine for you and think I may have made an error here is a snapshot of my workspace.

https://w.trhou.se/hgqom02gvq

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there, Darrell Conklin! You're doing terrific and you are exactly one character from making this work. It's just a typo which, unfortunately, is producing neither results nor errors. Those can be the worst to track down.

On line 49 of list_item.php in your views folder you will find this:

onlick="toggle

But obviously, the event is "onclick"... not "onlick" :smiley:

onclick="toggle

Once I make that correction and save the changes the toggling of the CoC works beautifully!

Hope this helps! :sparkles: