Hide/show a element by id using JavaScript

added by JavaScript Kicks
8/29/2022 2:55:24 PM

546 Views

In this tutorial, we are going to learn about how to hide/show a element by id using JavaScript. Consider, we have a following html div element. To hide an element, first we need to access it inside the JavaScript using the document.getElementById() then set its style.display property to none.


0 comments