[jQuery] Re: using a different tag than label for error messages

2008-01-25 Thread Dave Stewart
Hi MorningZ, I just did some quick Googling on the matter, and turned up this useful link: http://www.456bereastreet.com/archive/200711/use_the_label_element_to_make_your_html_forms_accessible/ Each label element can only be associated with a single form control, while a form control may have

[jQuery] Re: using a different tag than label for error messages

2008-01-25 Thread MorningZ
On Jan 25, 4:24 am, Dave Stewart [EMAIL PROTECTED] wrote: Hi MorningZ, I just did some quick Googling on the matter, and turned up this useful link: http://www.456bereastreet.com/archive/200711/use_the_label_element_to... I just had to laugh at this line in that link: I always use and

[jQuery] Re: using a different tag than label for error messages

2008-01-24 Thread Diego A.
CODE? And why have you posted this twice? On Jan 24, 10:00 am, Dave Stewart [EMAIL PROTECTED] wrote: Hello, I'd rather not use label tags for my error messages, as I think divs are less semantically ambiguous. Is there any way I can change the default functionality? At the moment I'm

[jQuery] Re: using a different tag than label for error messages

2008-01-24 Thread Dave Stewart
SORRY - the word [jQuery Validation Plugin] was supposed to appear in the title, but didn't. Hello Diego, Sorry, it's a separate question, actually. I've re-stated the first post question to clarify things, so sorry for the ambiguity. To restate the problem: Using the jQuery Validation

[jQuery] Re: using a different tag than label for error messages

2008-01-24 Thread MorningZ
But you brought up semantics, to which the label makes way more sense in that way in this situation The error message is a label for the control (and clicking on it because of the for parameter) sets focus on said control Personally i think your premise of screen readers getting confused is not