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 trialGil Aguilar
8,813 PointsTrying to get my toggle function to work and it doesn't display ...
Here is my code ... I am currently in the statuses.js.coffee
$ -> $('.status').hover (event) -> $(this) .toggleClass("hover)")
I know someting is wrong because the words aren't changing color to indicate they are being called or more appropriately the functions aren't being called ... I am on a Windows machine and was wondering do I have to add something to my index.html.erb page ? Any help would be greatly appreciated sorry I am a newbie but this is fun cheers ...
gil
1 Answer
Jason Seifer
Treehouse Guest TeacherHey Gil Aguilar it looks like you have an extra closing parenthesis on the end. Try removing that and see if it helps.
Gil Aguilar
8,813 PointsGil Aguilar
8,813 PointsThank you Jason that solved that right away. I am extremely dyslexic so I always spend large amounts of time getting snagged up by things like that. Cheers ...