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 Understanding jQuery Events and DOM Traversal Adding New Elements to the DOM

Roald Jurrian Kamman
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Roald Jurrian Kamman
Front End Web Development Techdegree Graduate 15,538 Points

Do you think people will still turn off JavaScript 2-5 years from now?

It seems kind of ridiculous. What's the percentage of users actually experiencing this issue? 0.1%? Implementing this is only worth it for companies as big as google. if someone is browsing on a laptop that runs a browser that old from the 3rd world it's not even going to be a decent prospect for commercial purposes.

There are better methods for keeping people from visiting certain websites.

I just don't see where I would realistically implement this.

Steven Parker
Steven Parker
215,956 Points

What's the "this" you are referring to? If it's in the video, can you give a time index?

1 Answer

Steven Parker
Steven Parker
215,956 Points

I think you misunderstand how jQuery works. jQuery is a JavaScript library. It extends but does not replace JavaScript.

If you turn off JavaScript in your browser, then jQuery will also stop working.

Steven Parker
Steven Parker
215,956 Points

The jQuery code is used to add a button only if JavaScript is enabled. Later in the video, the instructor points out that "if JavaScript is disabled our users will still be able to view the spoiler, but won't see a button that doesn't work."

This is also demonstrated in the video about 3 minutes in.