I'd guess that if you try to use $("input[name=myFormField]"),
basically just narrowing down what type of elements you're interested
in. Only using an attribute selector asks jQuery to check _every_
element in the current context (the whole document by default). If you
want to match several types of elements you could always do $("input
[name=myFormField], select[name=myFormField]").-- Frode Danielsen On Feb 7, 10:17 pm, Kevin Dalman <[email protected]> wrote: > I work on complex web-apps with over 100 form fields per page, in > addition to hundreds of other DOM elements. I found that the selector > syntax $("[name=myFormField]") was slow to the point of being > unusable! I did not want to add IDs to every field, so I created a > custom method - $N("myFieldName") - that is dramatically faster. I > only use the [name=] syntax when I need partial name matches. > > However, I'd much rather use native jQuery syntax for my new project, > so my question is: > > Does Sizzle have a better method and performance for finding form > fields 'by name'? If not, is there anything in the roadmap that would > address this basic need? > > This is a major performance issue to me, so any and all info related > to form and field handling is appreciated. > > /Kevin Dalman --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
