March 30, 2005, 02:13 PM
CHERIHide Select List
To All You JavaScripters:
Does anyone know how to hide a select list upon entry into a html page ?
March 30, 2005, 02:56 PM
<JG>Two questions have got to be asked.
Why do you want to hide it? And when do you want it to appear?
The second question is the most important.
March 30, 2005, 02:56 PM
<Grzegorz>One of the methods:
object.style.display = "none" - to hide
and
object.style.display = "" - to show
For example:
Hidden select<script type="text/javascript">
function hideSelect() {
var select = document.getElementById("selectToHide");
select.style.display="none";
}
Hope this helps
Grzegorz
This message has been edited. Last edited by: <Mabel>, March 30, 2005, 03:26 PM
reFOCUSingThis is not an answer to your question but you may find this site helpful.
JavascriptMarch 30, 2005, 06:18 PM
CHERIThanks Everyone. I got it working.