Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi. I just want to know if it is possible to have a form set up that when you click on an image the radio button gets selected.

I answered this a couple of hours ago. I must have skipped the confirm paage or something.
I don't have time to whip up a sample, but a few days ago I made a sample page where you move the mouse over an image and a second image changes.
What you would do for your question is similar in some areas.
You can see the other example at:
programming.arnett.nu/html/rollover
You'll have to right-click to see the source code.
The differences would be:- for the image that you want to click on, you would use onClick() instead of onMouseOver() & onMouseOut() to call a javascript function
- in the javascript function that you call with onClick(), you'd have code to set the radio button. I don't remember exactly what that code would look like, but it would be something like:
document.forms['formname'].??????.checked = true;
I don't remember how you specify the radio button array.Good luck

I know you can use
the "label for" command using text but I just want to know if you can do the same with images instead.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |