Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,411 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,411 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!