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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to assign Value to Radio Item???

Status
Not open for further replies.

poonamgoyal

Programmer
May 17, 2001
1
US
Guys,
Just now i read one Thread regading copy part of Radio vale to Item by Tracy Dryden & Yash

My reqirement is almost simillar to that..
in my requrement i want to check another radio button group item on the basis of First radio button group selection..

Thanks in Advance..
 
Code:
if (document.myform.rbutton1.checked) {
   document.myform.rbutton2.checked = true;
}
If I understand what you want to do correctly, something like that ought to do it.
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
:~/ OOPS, that should probably be:
Code:
if (document.myform.rbutton1[n].checked) {
   document.myform.rbutton2[m].checked = true;
}
Replace n and m with the number (starting with 0) of the button you want to test and the button you want to set. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top