tags:

views:

34

answers:

2

html input element hide and show using link tag. example:yahoo mail Bcc hide and show

+2  A: 

This is done in Javascript.

For simple Javascript, i.e. without using jQuery you can do that:

document.getElementById("idOfElement").style.display = "none"; // to hide    
document.getElementById("idOfElement").style.display = "block"; // to show

Here is a link with the possible values for this display CSS element.

romaintaz
+1  A: 

yahoo does this with javascript.

using plaing JS on the onlick of a link:

document.getElementById('someDiv').style.display = 'block'; //or 'none' to hide

using a JS library like jQuery:

$('#someDiv').show(); //or .hide();
Moin Zaman
`display = "show"` ? Is it a valid value for this CSS property?
romaintaz
my mistake. corrected.
Moin Zaman