Re: making an image part of the Radio button

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
Scott Bryce [ Do, 22 November 2007 17:54 ] [ ID #1876928 ]

Re: making an image part of the Radio button

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
lws4art [ Do, 22 November 2007 18:40 ] [ ID #1876932 ]
Miscellaneous » alt.html » Re: making an image part of the Radio button

Vorheriges Thema: tables and images, in IE (ok in firefox)
Nächstes Thema: Re: Apologies to Chaddy