![]() federal government, and you should not assume their endorsement. How to show/hide div content on click event (jquery) ul idmenu classmenu no-bullet li>
If all is well, proceed to the next lesson.Ĭopyright © 2005-2023 by University of Washington. Share your web page with your instructor. Also make sure the button text changes from "Show clock" to "Hide clock" as appropriate. Test your web page, and make sure you can show and hide the clock with the new button. While you're switching the clock's display back and forth from "block" to "none", you're also changing the text (innerHTML) on the clock button, so that alternates between "Show clock" and "Hide clock", depending on the current display state of the clock. If the clock is already hidden, you change the display to "block" to make it visible again. If
That's so you can access it easily using JavaScript (you'll see why in a moment). Note that this button is essentially the same as the one you created in Lesson 1 to show the alert.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |