2019-12-31 · The task is to show a hidden div on click using Bootstrap. There are two methods to solve this problem which are discussed below: Approach 1: Set display: none property of the div that needs to be displayed. Use .show() method to display the div element. Example: This example implements the above approach.
I need one of these divs to be hidden and one to be visible depending on a value getElementById('hideDiv').style.display = "none"; else document.