On Fri, Feb 09, 2007 at 05:04:39PM +0100, Jörn Zaefferer wrote:
> > Looks like it is coming along nicely. One issue I can think of is if
> > an element doesn't have an id (and it's not a checkbox or radio), it
> > won't validate:
> >
> > <input type="text" name="FirstName" />
> >
> > I think name should be used instead of id, especially since when you
> > submit a form that is used to identify form elements (I think that is
> > how it works - a simple test would be a form with differents ids on
> > the elements with a server script to loop through them).
> >   
> Thanks for you reply!
> 
> I agree that the ID-requirement is somehow limiting, but there are good 
> reasons for it:
> A properly setup form with labels for every input element needs IDs 
> anyway. The for-attribute points to the ID, not the name. In addition, 
> it allows you to add IDs to your elements and use completely different 
> names for the serverside script.
> 
> I'll check how far it is possible to switch to names instead of ideas.
> 

        Not a comment on your code- but this is an example of something
which would make use of a 'name' selector, as mentioned in a different thread.

        Austin

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to