PsychoticBadgers
IS-IT--Management
I can update a text box with the contents of another text box...
Here's the tricky bit:
[COLOR=red yellow]I want it to choose which text box to update based on a selection box.[/color]
I have the following code, but i don't think it likes having two "options" bits...
How else can I do this?
Code:
function SendInfo()
{
window.document.Formname.[COLOR=green]Textname2[/color].value=window.document.Formname.Textname1.value
}
Here's the tricky bit:
[COLOR=red yellow]I want it to choose which text box to update based on a selection box.[/color]
I have the following code, but i don't think it likes having two "options" bits...
Code:
function SendInfo()
{
window.document.Formname.[COLOR=green]options[window.document.Formname.SelectBoxname.options[window.document.Formname.SelectBoxname.selectedIndex].value][/color].value=window.document.Formname.Textname1.value
}
How else can I do this?