/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Pass form values to another form/box/list

Hi all! Here’s what I’m trying to do and I’m having a hard time figuring it out. I want to have a form to the left of the screen with different radio buttons that can be selected. When one is selected the value is passed to a box on the right where the value is displayed. So say I had these radio buttons:

<label><input type=”radio” name=”radio” value=”one” /> A</label>
<label><input type=”radio” name=”radio” value=”two”/> B</label>
<label><input type=”radio” name=”radio” value=”three”/> C </label></label><br />

And someone selected “A”, the word “One” would be displayed in the box on the right.

Anyone know how to do that?

Thanks!

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@bathurst_guyMar 22.2008 — Sure. Add onChange="document.getElementById('id-of-text-box-here').value='One';" within the radio input field then make necessary adjustments
Copy linkTweet thisAlerts:
@jessnoonyesauthorMar 22.2008 — Worked perfectly, thank you!!
×

Success!

Help @jessnoonyes spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...