Hands On: Completing Event Handling
Let's complete event handling in this lesson.
The previous exercise showed that you can easily change an element in the DOM. However, instead of setting the background color of headings to red, the <div>
section adjacent with the <h2>
should be hidden or shown again.
In the upcoming exercise, you will learn how to do it with the operations of the DOM.
Get hands-on with 1400+ tech skills courses.