radio buttons

W

w.bristow

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.
 
J

Jim Higson

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 the images inside label tags
http://www.google.co.uk/search?q=html+label&ie=UTF-8&oe=UTF-8
 
J

Jonathan N. Little

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top