Complete newbie. Have a table posing the question "Which do you like best"? Two possible responses. Want to replace radio buttons COMLETELY with images that represent those possible responses. With A LOT of help, I've done that using a "hidden" question (code below). It works - I've checked and clicking on one or other image indeed returns the corresponding value. As far as the user is concerned, however, nothing is happening. Not ideal.
I have two images for each choice - the originals that come up on page load, and a version of each with a big tick in the middle, which I would LIKE to come up onclick. Can anyone enlighten me on how to make it so that if CokeRange.jpg is clicked, CokeRangeClicked.jpg shows and if PepsiRange.jpg is clicked, PepsiRangeClicked.jpg shows - but that, like the radio buttons they are pretending to be, only one of the images remain with the big tick?
Here's the code:
Expand|Select|Wrap|Line Numbers
- <input id="Q6_var" name="Q6_var" type="hidden" value="0">
- <TABLE CELLPADDING="5" BORDER="0" width="100%">
- <TR>
- <TD>
- <img src="[%GraphicsPath()%]CokeRange.jpg" alt="" border="1"
- onclick="Q6_var.value=1;">
- </TD>
- <TD>
- <img src="[%GraphicsPath()%]PepsiRange.jpg" alt="" border="1"
- onclick="Q6_var.value=2;">
- </TD>
- </TR>
- </TABLE>