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

help with test with radio buttons

Status
Not open for further replies.

scarletOHarra

Programmer
Jul 10, 2007
1
BG
Hello,
I just started using struts and I already have a problem :). I need to fill a form with questions and answers, something like a test - first question, radio buttons answers, second question ... and so on. My major problem was that when I try to populate the answers all radio buttons have same group(so I can select only one answer for all questions). How can I set different radio groups? Is it a specific way I can do this whole task?
Thank you in advance!
Best regards
 
Hi

Your question may be pure HTML. The radio buttons with identical [tt]name[/tt] are in the same group :
Code:
Sex :
<input type="radio" name="[red]sex[/red]" value="male"> Male
<input type="radio" name="[red]sex[/red]" value="female"> Female
<br>
Age :
<input type="radio" name="[blue]age[/blue]" value="minor"> Minor
<input type="radio" name="[blue]age[/blue]" value="major"> Major
Without seeing your code I can not suggest how to apply this.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top