For a website I\'m doing, I want to load one div, and hide another, then have two buttons that will toggle views between the div using JavaScript.
This is my
Just Simple Set the style attribute of ID:
To Show the hidden div
............... //In JavaScript document.getElementById('xyz').style.display ='block'; // to hide
To hide the shown div
............... //In JavaScript document.getElementById('xyz').style.display ='none'; // to display