W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > April to June 2000

Radio buttons id's and labels

From: Chris Croome <wai@atomism.demon.co.uk>
Date: Tue, 27 Jun 2000 12:23:52 +0100
To: w3c-wai-ig@w3.org
Message-ID: <20000627122352.B8672@webarchitects.co.uk>

I'm trying to achieve AA status for a form and I'm stuck on how to do
radio fields (I realise I could use a select form but the client wants a
radio button):

  <label for="role">Choice of role</label>
  <input name="role" id="role" value="Mentor only" type="radio" /> a Mentor only
  <input name="role" id="role" value="Mentor or a Lead Mentor" type="radio" /> a Mentor or a Lead Mentor

The above is invalid as you can't have two id's which are the same... so
how does one do this? 

Anyone have any ideas, thanks.


Chris Croome <chris@webarchitects.co.uk>


Received on Tuesday, 27 June 2000 07:23:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:35:56 UTC