Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a value from a radio button into a form

Status
Not open for further replies.

hame23

Programmer
Jul 20, 2006
3
GB

Hi I have a popup box listing a number of radio buttons containing values.

What I want to do is pass the value of the checked radio button into a textfield in a form in another window. Can this be achieved?

I have seen the equivilant uising a select menu but I cannot seem to adapt it for radio buttons.

Thanks in advance
 
yes. when do you want it to happen? i will assume during the onclick event...

Code:
<input type="radio" name="r1" value="first radio" onclick="opener.document.forms['parentFormName'].elements['fieldName'].value=this.value;"/>



*cLFlaVA
----------------------------
[tt]( <P> <B>)13 * (<P> <.</B>)[/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Hi,
Try this:
Context.getRequestParameterMap().get(RadioButton id)
 
sagarB, are you sure that is not Java syntax? this is the javascript forum.

-kaht

Looking for a puppy?

[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top