Click to See Complete Forum and Search --> : fieldset/legend for textarea


bbeeck
06-24-2004, 08:45 PM
Hello,

I have created a form and included the fieldset and legend tags and tested the page with JAWS. It works fine for the textfields, radiobuttons, and checkboxes, but not for the textarea. Does somebody know why the fieldset/legend tags are not working for the textarea element? Or is there maybe a way to get it to work?

Thanks.
Britta Beeck

David Harrison
06-26-2004, 01:51 PM
Can you post your code or provide a link to it? It could be that there is a mistake.

bbeeck
06-26-2004, 02:44 PM
This is my code:

<fieldset>
<strong><legend>Billing Information</legend></strong>
<p><label for="firstname">First Name</label>
<input type="text" name="textfield" id="firstname" /></p>
<p><label for="lastname">Last Name</label>
<input type="text" name="textfield2" id="lastname" /></p>
<p><label for="address">Address</label>
<textarea name="textarea" id="address"></textarea></p>
</fieldset>

Thanks
Britta

David Harrison
06-26-2004, 07:59 PM
Well I'm not too sure what you mean, "It works fine for the textfields, radiobuttons, and checkboxes, but not for the textarea." You mean it doesn't read the label for the textarea?

By the way, it seems like you have a list there of form elements there, and rather than use strong on the legend simply set the legend to font-weight:bold; here's some code with a list:<fieldset>
<legend>Billing Information</legend>
<ul>

<li>
<label for="firstname">First Name</label>
<input type="text" name="textfield" id="firstname" />
</li>

<li>
<label for="lastname">Last Name</label>
<input type="text" name="textfield2" id="lastname" />
</li>

<li>
<label for="address">Address</label>
<textarea name="textarea" id="address"></textarea>
</li>

</ul>
</fieldset>

bbeeck
06-26-2004, 09:45 PM
Thanks, yes, my question is: Why does JAWS not read the label for the textarea element. It reads the labels for all other elements, but not for the textarea. Do you know why?

Britta

David Harrison
06-26-2004, 10:53 PM
I'm not sure, try changing the name of the textarea and/or it's ID.

Robert Wellock
06-28-2004, 12:22 PM
It depends on how you have configured JAWS and remember JAWS has quite a lot of bugs, it also depends upon the underlying browser.

<label for="textarea">default textarea</label>
<textarea name="textarea" id="textarea" cols="14" rows="1">initial value</textarea>