I have a page which shows a particular div like this,
<div id="placeholder1" style="height: 150px;"></div>
but on some click I want to change my div dynamically to something like this.
<div id="placeholder2" style="height: 150px;"></div>
How to do it?
If you’re into jQuery, you can bind a click event to whatever element and change it like so (make sure the DOM has finished loading first):
Edit: Upon inspection I realize you want to hide/show differing divs, try this out: