- From: PERRY, Grant <Grant.Perry@qed.qld.gov.au>
- Date: Tue, 30 Apr 2002 18:04:49 +1000
- To: www-html@w3.org
I was under the impression label was used for labeling a form field not providing some shortcut to it. But in any case after rethinking this the label for each should be unique to prevent user confusion. Out of interest exactly what software turns labels into some kind of field focus? I think using a script is out of the question, it may make life just that minute bit easier for the users that support client side scripting however.. why bother... I very rarely use any Client Side Scripting anymore I am of the opinion that it is the root of all evil. I find it very hard to justify using it consider the lack or difference of support browsers have and the trouble you sometimes need to go to just to do some that could be done server side in some case of just provide the user with some simple instructions... Unless of course your trying to do something flashy.. but changing animated BG gif doesn't really appeal to me. -----Original Message----- From: David Bindel [mailto:dbindel@austin.rr.com] Sent: Monday, April 29, 2002 9:37 PM To: www-html@w3.org Subject: RE: Single label for 2 inputs? >> I wish to use the same label for 2 separate inputs but what to know >> how or if it is even allowed. Nope. Not allowed. >> Example: >> I have a form with 5 options the last being 'other:' with an option >> to enter the 'other' in a type="text". Now can I use the one label >> tag or should I use two or shouldn't I do this at all. What's the point of this??? You can't click on a label and have TWO form controls selected. Think about it: you click the label and it selects BOTH form fields. Then you start typing something. What is the browser supposed to do: automatically focus on the text box, or go to a selection in the list box that matches what you type? This is why you cannot use the same label for 2 inputs. What you can do is have a script that when "other" is selected from the menu it will focus on the "Other" text input box. Sincerely, David Bindel
Received on Tuesday, 30 April 2002 04:06:55 UTC