/ Published in: JavaScript
This function allows you to pass two variables that represent ID of two elements on your page. What you click on one of them it hide it and shows another one.
URL: http://www.apphp.com/index.php?snippet=javascript-toggle-elements