WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Labeling form elements for date


From: Leo Smith
Date: Jun 26, 2002 5:26AM

you could use the title attribute for each of the <select> elements -
however, I have found that JAWS 4 does not read title on
<select>, only on <input>
From you description below, it sounds like you do need three
separate labels, otherwise how would the user know that
dropdown #1 was for month, #2 for day, and #3 for year.
I would suggest placing each form control's label inside each
<select>, as the selected item.
<select><option value="" selected="selected">choose a

In a form in a web page, I have three = pull downs, one for
month, one for day, and one for year. There is = only one
label that applies to all three. How can you associate = one
label to multiple elements? I noticed a thread in the
archives = regarding doing the same thing for time (e.g.,
hours and minutes), but = no solution was presented.
Can you do this:
<label = for=3D"month"><label for=3D"day"><label =
for=3D"year">Select the = date:</label></label><label>
Any help would be appreciated,
Jed Sutton
1100 West Street
Laurel, MD 20707
301 939 1640 phone
301 953 2368 fax

Leo Smith
Web Designer/Developer
USM Office of Publications and Marketing
University of Southern Maine

To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/