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 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,544 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
231,269 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
231,269 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
231,269 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.