You are here: Re: making an image part of the Radio button « HTML « IT news, forums, messages
Re: making an image part of the Radio button

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация