On Feb 11, 2008 10:07 AM, Dave Stewart <[EMAIL PROTECTED]> wrote: > > Hi Aaron, > Good styles there with the name attribute stuff. Not so good if you > want to grab other entities such as selects
This should select any "form element" (input,select,textarea,button) whose "name" attribute is "foo[bar][baz]": $(":input[name='foo[bar][baz]']") You're gonna wanna restrict it, though, so it doesn't search the *entire* page. Something like: $("#myFormsId :input[name='foo[bar][baz]']") or $(":input[name='foo[bar][baz]']", domElementForMyForm) You can read more about jQuery selectors at http://docs.jquery.com/Selectors -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com