Re: [jQuery] form elements
thanks, it looks simple now 8-) On 9/6/06, Sam Collett <[EMAIL PROTECTED]> wrote: > On 06/09/06, Aljosa Mohorovic <[EMAIL PROTECTED]> wrote: > > i have a form with id=profile_form, how can i select all form > > elements, but not other elements inside form tag? > > $('#profile_form').children(pattern); > > pattern = /input|textarea|select/ > > > > $('#profile_form').find("input,textarea,select"); > > > can i do something like: > > $('#profile_form').children('input').name('first_name') > > to get input field with name 'first_name'? > > > > Aljosa Mohorovic > > > > $('#profile_form').find("[EMAIL PROTECTED]") ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] form elements
On 06/09/06, Aljosa Mohorovic <[EMAIL PROTECTED]> wrote: > i have a form with id=profile_form, how can i select all form > elements, but not other elements inside form tag? > $('#profile_form').children(pattern); > pattern = /input|textarea|select/ > $('#profile_form').find("input,textarea,select"); > can i do something like: > $('#profile_form').children('input').name('first_name') > to get input field with name 'first_name'? > > Aljosa Mohorovic > $('#profile_form').find("[EMAIL PROTECTED]") ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] form elements
i have a form with id=profile_form, how can i select all form elements, but not other elements inside form tag? $('#profile_form').children(pattern); pattern = /input|textarea|select/ can i do something like: $('#profile_form').children('input').name('first_name') to get input field with name 'first_name'? Aljosa Mohorovic ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/