AutoComplete for a label's "for" Attribute

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

AutoComplete for a label's "for" Attribute

Post by syrupcore »

I build a lot of forms. Most of my clients need the forms to be accessible and standards compliant so I always use a <label> tag which, according to the w3c, must use the 'for' attribute to let a user agent know the ID of form field labeling.

Code: Select all

		<label for="name">Name:</label>
		<input type="text" id="name" />

Is there any way to get autocomplete to search for IDs of inputs/textareas/selects... in the current form and offer them in the autocomplete dropdown? It'd be handy.
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

I often use a snippet to build forms. well, two.

one gets me setup:

Code: Select all

<form id="" action="">
	<fieldset>
		<legend class="accessibility"></legend>


		<button type="submit" value=""></button>
	</fieldset>
</form>
and then on the inside I'll use this to fill it up. sometimes it's just easier to type but this can be handy because it's asks you for the key bits and builds it.

Code: Select all

<label for="%[Label for?]%">%[Label Text]%</label>
<input type="%[Form Element Type]=[text]%" id="%[Element ID]%" />
thought I'd share in case some one finds it useful.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Not sure about this. Well, it is obviously possible, but how many of us do need this... again, everubody who needs this cast a vote.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
notuo
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Post by notuo »

+1 :D
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

yay! keep 'em coming...
Post Reply