Black Friday: Save up to 65% on DMXzone with DMXBF26 and 30% on Wappler yearly plans with WAPPLERBF26. Ends 30 November!

Dynamic "Hide and Show" Content using the DOM

One of the great benefits the DOM and CSS has brought developers is flexibility. In today's tutorial, we use this behavior to our advantage is to tie more functionality to a page than is initially visible. That hidden content can then react to the user based on their actions, for example, make a 'help' box dynamically appear if the user presses a button, without leaving the page or popping up a new window. In this tutorial, we develop a system whereby a user can click on an author's name at the top of an article, and their bio appears - but can be adapted to any situation you need.

The tutorial is suitable for beginners to intermediate JavaScripters.

$2.89
- OR -

Overview

Table of Content:

  • Basic Hide and Show
  • The HTML
  • Show the Author
  • Hide the Author
    • Variations
  • Example 2: Toggle a Preview
  • Toggle Preview HTML
  • The Toggle
    • Setting Up
    • Toggle Trigger
  • Conclusion

Reviews

Be the first to write a review

You must me logged in to write a review.