PDA

View Full Version : Image onClick Sets off Radio Button?


gorilla1
03-05-2003, 04:28 AM
I would like to have the functionality of radio buttons, but would rather use images. This is for a viewer survey. So let's says I have a 1 to 5 thumbs up rating, as an example. I have multiple items, each to get the 1 to 5 rating, all in one form. Works great with radio buttons, as on a single click I can collect all the ratings. But can I put the thumb images up, and onclick have that set off invisble radio elements on the document, so that I get the same functionality, but using my images instead?
G


<input type="radio" value="5" name="u_input0">5</td>
<td><input type="radio" value="4" name="u_input0">4</p></td>
<input type="radio" value="5" name="u_input1">5</td><td><input type="radio" value="4" name="u_input1">4</td>

gorilla1
03-05-2003, 05:13 AM
Couldn't I do the following... Set up an onclick handler that would set the value in a hidden input statement? Then I wouldn't need the radio buttons at all.
G