TheScriptCenter.com Search:
JavaScript
JavaScript Commission Calculator
Javascript Calculator
Random Quote Of The Day Script
Javascript Close Document window
Javascript Countdown Timer
Javascript Browser History
Javascript Customizable Live Clock Script
Javascript Show / Hide DIV Tag Elements

Javascript Show/Hide <DIV> Code Snippet

Here's a simple little script that allows you to take the contents of a <DIV> tag on your web page, hide the contents, then show them when a user clicks the hyperlink. I use this frequently on my websites. In this script, I included an open and closed arrow with this example as well.

Example:
show hide my div tag SHOW/HIDE MY HIDDEN DIV TAG


Code: Copy/Paste the following code into your website:





Page Last Updated: 09-04-2010