I have this markup that is dynamically generated. However when there is two divs generated i want a button that will toggle between the two. here is my code.
<div class="threeSixtyContainer">
<div class="toggle"><embed height="350" flashvars="site=lexmoto" pluginspage="http://www.adobe.com/go/getflashplayer" src="models/ZS125-50/360/ZS125-50_Blue.swf" type="application/x-shockwave-flash" width="500"></div>
<div class="toggle"><embed height="350" flashvars="site=lexmoto" pluginspage="http://www.adobe.com/go/getflashplayer" src="models/ZS125-50/360/ZS125-50_Black.swf" type="application/x-shockwave-flash" width="500"></div>
</div>
How could i add a toggle button which would toggle between the two divs. so one is hidden press the button and it gets changed to display block and the other gets display hidden.