Reply to Re: radio buttons

Your name:

Reply:


Posted by Jonathan N. Little on 09/19/05 18:16

w.bristow@rchl.org.uk wrote:
> I am hoping that someone can clear this little problem up. I have a web
> page written in html, which has radio buttons on it with images next to
> them. The page itself works fine and the form sends the correct
> information through to next page, what I want to be ablt to do is
> instead of just being able to click over the radio button to check it,
> I want to be able to click on the image aswell to check the radio
> button. Radio button and image are within table in different cells (not
> sure if that has any significance with any scripting you give me).
>
> Hope someone out there has come across this before, or knows how to do
> it.
>

Put images inside a LABEL element for RADIO. Labels are attached by ID,
I would still use text in label as well

<input type="radio" name="myChoice" id="choiceY" value="yes">
<label for="choiceY"><img src="yes.jpg" alt="Yes"></label>

<input type="radio" name="myChoice" id="choiceN" value="no">
<label for="choiceN"><img src="no.jpg" alt="No"></label>


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

[Back to original 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

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