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
You can easily achieve this with the use of jQuery .toggle().
$("#btnDisplay").click(function() { $("#div1").toggle(); $("#div2").toggle(); });
First Div Second Div Display