I have 2 divs which and I want to be able to toggle between them onClick of a button (currently using .toggle();)
The div that shows on the page is div1. This div has th
Using plain JavaScript, you could use:
document.getElementById('div1').style.display = 'none'; document.getElementById('div2').style.display = 'inline';