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 jQuery Basics Working with jQuery Collections Stopping the Browser's Default Behavior

How do I report a bug with what I got. After I changed the checkbox, the css disappeared from the page.

Have a bug with this course where the CSS disappeared from the page.

4 Answers

So I was able to fix it. It was the syntax. There was no error and I'll do my best soon here to post my work. Thank you Steve for reaching out!

Christine Treacy
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Christine Treacy
Full Stack JavaScript Techdegree Graduate 18,412 Points

Nevermind - just figured it out. I had ' instead of " for my type="checkbox" in my html. When I combine that with the single tick ' in the line to create the html in app.js, it threw an error. Got it!

highlandcow
highlandcow
7,352 Points

I had a similar problem and also uncovered an issue with syntax. For the benefit of anyone else who might encounter this problem: check your event handler syntax. Make sure it's right!

Christine Treacy
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Christine Treacy
Full Stack JavaScript Techdegree Graduate 18,412 Points

I am also getting a syntax error on line 4 of app.js const $pdfCheckbox = $('<label><input type='checkbox'> Allow PDF downloads</label>'); DevTools is saying this "Uncaught SyntaxError: missing ) after argument list" but I can't see what is wrong!