I've had a complete brain shut-down today. Any and all help would be appreciated on this "sorta" urgent problem!
I have 2 radio buttons and a text box. Here is a very simplized version of my problem.
If I click Option 1 I want the value "Red" in the text box.
If I click Option 2 I want the word "Blue" in the text box.
(for example)
() Option 1
() Option 2
You selected the color: [_________]
The form starts out blank, until the user selects one of the 2 radio buttons. As soon as they click their choice (Using, I am sure the JavaScript attribute: OnClick() can be used to assign the textbox value.
I am sure the solution is of the form:
Thanks,
Chalmers
I have 2 radio buttons and a text box. Here is a very simplized version of my problem.
If I click Option 1 I want the value "Red" in the text box.
If I click Option 2 I want the word "Blue" in the text box.
(for example)
() Option 1
() Option 2
You selected the color: [_________]
The form starts out blank, until the user selects one of the 2 radio buttons. As soon as they click their choice (Using, I am sure the JavaScript attribute: OnClick() can be used to assign the textbox value.
I am sure the solution is of the form:
Code:
<Form name=form1>
<input type=radio name=radio1 value="red"
onClick="form1.color.value="red"> Option 1
<BR>
<input type=radio name=radio1 value="blue"
onClick="form1.color.value="blue"> Option 2
<BR>
You select the color: <input type=text value="">
<BR>
</form>
Chalmers