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
2010-10-07 07:47:13
+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
2010-10-07 07:47:47
`display = "show"` ? Is it a valid value for this CSS property?
romaintaz
2010-10-07 07:48:51
my mistake. corrected.
Moin Zaman
2010-10-07 08:20:11