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

Hi, I have a poll with radio but 1

Status
Not open for further replies.

JennyW

Technical User
Mar 1, 2001
323
CA
Hi,

I have a poll with radio button on a test website.

People can vote on the poll by selecting the radio button.
However, I find that the radio buttons are very tiny and hard to press. I want to make the selection easier for my visitors.

[tt]Here’s my poll…

[/tt]


Question

I want to be able to click on the actual names “Robert Deniro” and “Val Kilmer” to have the radio button selected. Is this possible? How can I do it?

For example,
When you go to the Start Menu --> Shutdown in Windows 95 or 98 you don’t have to select the actual radio button, you can also select the words “Shut down the computer?”

This is the action I want my Form to take.

Thanks,
Jenny
 
<font onClick=&quot;document.MCVotes.choice[0].checked=true;&quot; style=&quot;CURSOR: hand&quot;>Robert Deniro</font>

for bobby and:

<font onClick=&quot;document.MCVotes.choice[1].checked=true;&quot; style=&quot;CURSOR: hand&quot;>Val Kilmer</font>

for val.

I tossed in the &quot;handy&quot; cursor for good measure. Hey... it's Friday.

:)
Paul Prewett
 
OH BUT WAIT!!!!

You can do this:

<tr onClick=&quot;document.MCVotes.choice[0].checked=true;&quot; style=&quot;CURSOR: hand&quot;>

for bobby's row and

<tr onClick=&quot;document.MCVotes.choice[1].checked=true;&quot; style=&quot;CURSOR: hand&quot;>

for val's

and it will make the whole row clickable. :)

 
Hi!

link9 you rule! I tried your code and it worked nicely.

But I still have a BIG problem. Half of my poll doesn't even show up in Netscape?

Does anyone know why this may be happening?

Thanks,
Jenny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top