On 7/9/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> Is it appropriate that I have one label for two inputs or does anyone
> know of a surefire way to hide second label I have tried this but it does not
> seem cross browser
>
Only one input per label according to the fine manual
"The LABEL element may be used to attach information to controls. Each
LABEL element is associated with exactly one form control."
http://www.w3.org/TR/html401/interact/forms.html#edef-LABEL



One alternative is to use the implicit association format which would
allow you to have the two necessary labels and use an expected
separator between them. A dash? A blank space? In the States it would
be Zip 5+4 with two input boxes and a space between them. Something
like this:

<label>Postcode<input type="text" class="postcode"
id="PostCode1" name="PostCode1"  maxlength="4" />
</label> -
<label><input type="text" id="PostCode2" name="PostCode2"
maxlength="4" /> </label>

drew


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to