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

<label> in struts

Status
Not open for further replies.

joelmac

Programmer
Jun 4, 2002
92
CA
Hi there,

I have some radio buttons with text beside them. I want to be able to click on the button or the text to select the radio button. No problem not using struts:

Code:
<input type="radio" name="rdoThing" id="rdoThing1" value="1"/> <label for="rdoThing1">Thing 1</label><br/>
<input type="radio" name="rdoThing" id="rdoThing2" value="2"/> <label for="rdoThing2">Thing 2</label>

What's the right way to do this using Struts? I tried adding an id attribute to the <html:radio />, but it didn't work.

Thanks

________________________
JoelMac
 
I got it now, I used the styleId attribute.



________________________
JoelMac
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top