doing a toggle for div swapping, or div hide and show, need some help
Hello all I'm trying to do a quick and dirty jQuery toggle swap, I'm swapping the div ok, but I can't seem to work out how to swap back to the original.
<span onclick="$('#original').html( $('#replacement').html() );">Click me to see replacement</span>
<div id="original">This is the original content.</div>
<div id="replacement" style="display: none">This is the replacement content.</div>
<span onclick="$('#replacement').html( $('#original').html() );">Click me to go back to original</span>
Maybe hide and show is what I need to do, but I cant quite figure it out.
Any help would be great