News:

Choose a design and let our professionals help you build a successful website   - ITAcumens

Main Menu

Simple Code to make toggle display an HTML element

Started by Kalyan, Sep 03, 2008, 02:45 PM

Previous topic - Next topic

Kalyan

Simple Code to make toggle display an HTML element

function ToggleFollowingText(id)

        {

            document.getElementById(id).style.display == '' ? document.getElementById(id).style.display = 'none' : document.getElementById(id).style.display = '';

        }

Quick Reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it has been approved by a moderator.

Name:
Email:
Verification:
Please leave this box empty:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:

Shortcuts: ALT+S post or ALT+P preview