<script language="javascript">
function changetext(Dropdown_Val, Dropdown_Val_SI)
{
switch (Dropdown_Val[Dropdown_Val_SI].value)
{
case 'Cheese' :
document.MyForm.TextField.value="Cheese";
break
case 'Ham' :
document.MyForm.TextField.value="Ham";
break
default :
document.MyForm.TextField.value="No Value";
break
}
}
</script>
<form name="MyForm">
<select name="DropField" onChange="changetext(this,this.selectedIndex);">
<option value="Choose">Choose</option>
<option value="Ham">Ham</option>
<option value="Cheese">Cheese</option>
</select>
<input type="text" name="TextField">
</form>
Stu
"Frank Py" <fp*@proactnet.com> wrote in message
news:3e*********************@news.frii.net...
I have 4 possible values that I would like to populate a text box with
depending on which 4 values are sleected in a select box. Is there an
example out there for this?
Thanks
Frank
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!