PDA

View Full Version : Content Appear onClick


Bobba Buoy
08-18-2004, 03:12 PM
How can I get a block of code appear when a select item is clicked (and is not empty)? I have a select that has an blank initial top item and I want them to select a name from the select. Once they select a name, they will get some features available but I don't want those features to become avaiable until they have selected a name. I am assuming it will involve a div but I am weak on them so....

By the way, the select item that we will be clicking is in the first row of a table that contains the code I want to hide unless a selection has been made in the select item.

allanm
08-30-2004, 04:22 AM
give the DIV an ID and make it hidden.

Then when the user ticks the box call a javascript function which contains something like:

document.getElementById('myDiv').style.display = '';