WebAIM - Web Accessibility In Mind

E-mail List Archives

how to use image as a label for a form field

for

From: Shrirang Sahasrabudhe
Date: Sep 26, 2006 10:40PM


Hi,
I wish to use an image as a label for a form field..
Currently I am writing a code like below
<input type="checkbox" id="chkPDF" name="chkPDF" checked="checked" />
<label for="chkPDF" id="labelPDF">
<img src="abc.gif" alt="Adobe Acrobat" title="Adobe Acrobat" width="16" height="16" />
</label>
When I am out of forms mode The alt for the image is getting associated with the input element
But when I enter the forms mode and tab to the checkbox it is not getting associated.
How can I rectify this?
I am using jaws5
Thanks in advance.
Shri



***********************************************************
If you try, you risk failure. If you don't, you ensure it....I try.
Shrirang Sahasrabudhe,
Pune, India.
Phone: 0091-020-4227558.

---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2