JavaScript and the DOM


Now that we can select an element with jQuery, we can use built-in jQuery functions to modify it. From here on, we will start building features into our skills website.

First off, it would be nice to make the page fade in when loaded.

To make a page fade in, it must first be hidden. We can hide elements with jQuery with a function named hide.

We can hide elements with jQuery, like this:

  1. We attached the hide function directly to the jQuery selector.
  2. The hide function will add the CSS property display: none to the DOM element from the page, which will hide it.
Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.