Hide and Seek - Peekaboo

Peekaboo…I See You

In my last post, I addressed the styling of the DOM. I wanted to point out something additional in that same vein that I have found very helpful. As you saw previously, you can access pretty much any style via the DOM style property. One of the key ones I have found helpful is the visibility property. This allows you to show stuff to the end user or not.

Here is how this works…

document.getElementById(“someID”).style.visibility = “visible”;

Again, I have found this useful over the years, so I thought I would share.

Happy Coding!

Clay Hess

Share this post