Menu
I have a Div that i would like to display a different piece of html code if a button is pressed. Can someone point me in the right direction on how to do this?
[code=html]<div id=”thediv”>Hey guys!</div>
<input type=”button” onClick=”document.getElementById(‘thediv’).innerHTML = ‘Dude!’;”>
For example in the above piece of code how can i have ‘Dude’ represent a piece of HTML code like a form.
Thanks in advance