Toggling Elements with JavaScript


/ Published in: JavaScript
Save to your folder(s)

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.