Posted by Jonathan N. Little on 11/22/07 17:40
Scott Bryce wrote:
> Summercool wrote:
>> It seems like there are cases in which when you click on an image next
>> to the radio button, the radio button is selected...
>>
>> must it be done by Javascript? can't it be done alone by HTML itself?
>
>
> http://www.w3.org/TR/html401/interact/forms.html#edef-LABEL
>
Illustrative example:
<fieldset>
<legend>Your Judgment:</legend>
<input type="radio" name="fate" id="fatelife" value="life">
<label for="fatelife">
<img src="thumbsup.gif" alt="thumbs up">
</label>
<input type="radio" name="fate" id="fatedeath" value="death">
<label for="fatedeath">
<img src="thumbsdown.gif" alt="thumbs down">
</label>
</fieldset>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|