Here you go, it won't work in IE but thats IE's fault...for some reason onSelect and onFocus don't work on that field. Hmmmm, I never noticed. Anyways this code might work in IE 7 I'm not sure, I know it doesn't work in IE 6.
Code:
<html>
<head>
<script type="text/javascript">
function Num2() {
document.getElementById("DIV").style.display='inline';
}
</script>
</head>
<body>
<select>
<option>1</option>
<option onClick="Num2();">2</option>
<option>3</option>
</select>
<br>
<div id="DIV" style="background:#000000;display:none;color:#ffffff;">
This is the test.
</div>
</body>
</html>
Best I could do, sorry.
Tim
EDIT: Just in case this wasn't clear, the extra form field would go in the DIV, or you could make a field and ID it. But make sure to change this reference:
Code:
getElementById("DIV")
Bookmarks