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

Radio Button + TD + Click Cell to Select 1

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
Guys I want to drop radio buttons in a cell and be able to clik anywhere in the cell where the radio button is to select it.

Any ideas?

----------------------------------------
Always Learning...
 
Use label. Something like this should work (css declarations should eventually go in the separate stylesheet):
Code:
<td><label style="display: block; width: 100%;" [b]for="myRadioButton"[/b]><input type="radio" name="myRadioButton" [b]id="myRadioButton"[/b] />My Radio Button</label></td>
The linking between the label and radio button is shown in bold. This should work although I would think about it if you are really outputting tabular data in this "table".
 
Thanks alot.

----------------------------------------
Always Learning...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top