[jQuery] filter() on attributes?

2006-09-05 Thread Dossy Shiobara
Hi, I don't want to assign an id attribute to all my input fields, but instead want to do something like this: div id=foo input ... name=bar /div Then, get the value with something like: $(#foo input[name=bar]).val(); That didn't work. So, I tried: $(#foo

Re: [jQuery] filter() on attributes?

2006-09-05 Thread Sam Collett
On 05/09/06, Dossy Shiobara [EMAIL PROTECTED] wrote: Hi, I don't want to assign an id attribute to all my input fields, but instead want to do something like this: div id=foo input ... name=bar /div Then, get the value with something like: $(#foo

Re: [jQuery] filter() on attributes?

2006-09-05 Thread Stephen Howard
Try $('#foo [EMAIL PROTECTED]bar]').val() Dossy Shiobara wrote: Then, get the value with something like: $(#foo input[name=bar]).val(); ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/