on 10/11/2006 05:03 [EMAIL PROTECTED] said the following:
Please could someone tell me what I'm obviously missing?
snip
Your text for each input isn't enclosed by the label element so the
explicit association is being lost.
Instead of:
label for=ainput type=radio value=0 name=answer
Hello Sharon,
I echo what Mel said, though I'd like to add that the label should probably
be the same as the name (and the ID, if needed, may as well match too).
label for=answerinput type=radio value=0 name=answer alt=make
your mark id=answer /Text/labelbr /
Respectfully,
Mike Cherim
Mike at Green-Beast.com
I echo what Mel said, though I'd like to add that the label
should probably
be the same as the name (and the ID, if needed, may as well
match too).
Just being mindful that obviously, for radio buttons, the ID can't match the
name, as the former needs to be
On Fri, Nov 10, 2006 at 10:49:43AM -0500, Mike at Green-Beast.com wrote:
I echo what Mel said, though I'd like to add that the label should probably
be the same as the name (and the ID, if needed, may as well match too).
You mean the text used to label the control with should be the same as
I echo what Mel said, though I'd like to add that the label should
probably
be the same as the name (and the ID, if needed, may as well match
too).
label for=answerinput type=radio value=0 name=answer
alt=make
your mark id=answer /Text/labelbr /
Being picky, the name isn't actually
On 10 Nov 2006, at 16:11:14, Emma Sax wrote:
label for=answerinput type=radio value=0 name=answer
alt=make
your mark id=answer /Text/labelbr /
Being picky, the name isn't actually required (unless being used in
scripts etc). The 'for' attribute of the label gets matched with the
'id'
Patrick wrote:
[...] the ID can't match the name, as the former needs to be unique [...]
Good point Patrick. Being it's a radio button you're right on.
---
David wrote:
You mean the text used to label the control with should be the same as
the value of the name and id attributes?
Actually I
Nick wrote:
For other input fields, the name is needed if the form is going to be
submitted to the server, as otherwise there's no way to form a
name:value pair, and so the field can't be submitted.
Good to know. I've always used the name attribute on form inputs. Now I know
why ;-)
Mike
On 11/11/2006, at 4:49 AM, Mike at Green-Beast.com wrote:
the label should probably be the same as the name (and the ID, if
needed, may as well match too).
Disagree Mike, the name attribute on form controls is used server
side to process the form. Example: radios should/could have the