[thelist] javascript forms

Feingold Josh S Josh.S.Feingold at irs.gov
Fri Feb 22 14:44:01 CST 2002


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]
>Or alternatively: have a dropdown, and if anything else than the first one
>is selected, a second dropdown appears??

Here it is in JScript (I can't help you with NN and others, sorry.  I wish I
could... maybe we'll both learn something from this post as it continues.)



<head>
<script language="JavaScript">
function showselectbox() {

	if (document.formit.selectit.options[0].selected == false) {
	showme.innerHTML = '<select name=select2><option
value=one>One<option value=two>Two<option  	value=three>Three</select>'
	} else {
	showme.innerHTML = ''
	}

}

</script>
</head>
<body>

<form name=formit>
<select name=selectit onchange=showselectbox()>
<option value=one>One
<option value=two>Two
<option value=three>Three
</select>
<p>
<p id=showme></span>
</form>

</body>




More information about the thelist mailing list