[jQuery] Re: Select element based on a value of its child element

2009-02-09 Thread Adrian Lynch
Cheers all. By the way Stephan, I'm gonna steal your sig! By(e) Adrian :OD On Feb 6, 9:16 am, Stephan Veigl wrote: > Hi, > > according to another thread in this group > (http://groups.google.at/group/jquery-en/browse_thread/thread/2115a6c8...) > there is already a ticket for this bug:http://de

[jQuery] Re: Select element based on a value of its child element

2009-02-06 Thread Stephan Veigl
Hi, according to another thread in this group (http://groups.google.at/group/jquery-en/browse_thread/thread/2115a6c8c2069cd8) there is already a ticket for this bug: http://dev.jquery.com/ticket/3990 and it's already fixed in the trunk by(e) Stephan 2009/2/6 jQuery Lover : > > Most likely... y

[jQuery] Re: Select element based on a value of its child element

2009-02-06 Thread jQuery Lover
Most likely... you should submit a ticket: http://dev.jquery.com/ Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Wed, Feb 4, 2009 at 9:24 PM, Stephan Veigl wrote: > > Good point. > > I've just tested "input[value='']" and got an error in jQuery.js. Just > tested it wi

[jQuery] Re: Select element based on a value of its child element

2009-02-04 Thread Stephan Veigl
Good point. I've just tested "input[value='']" and got an error in jQuery.js. Just tested it with other HTML attributes and got the same results. Empty attributes are not selected with a "element[attr]" and doing a "element[attr='']" results in an error. Is this a bug? by(e) Stephan 2009/2/4

[jQuery] Re: Select element based on a value of its child element

2009-02-04 Thread Adrian Lynch
Nice one! Should have spotted :has()... I've asked this in another thread but I'll slip it in here too, does the selector... input[value=''] ... work for any of you? Adrian On Feb 4, 12:11 pm, Stephan Veigl wrote: > Hi, > > just a little remark: add a child selector '>' before the 'input' or

[jQuery] Re: Select element based on a value of its child element

2009-02-04 Thread Stephan Veigl
Hi, just a little remark: add a child selector '>' before the 'input' or you will select surrounding divs as well. $("div:has(>input[value='2'])") by(e) Stephan 2009/2/4 Mauricio (Maujor) Samy Silva : > > $('div:has(input[value=2])') > > Maurício > > -Mensagem Original- De: "Adrian Ly

[jQuery] Re: Select element based on a value of its child element

2009-02-04 Thread jQuery Lover
Adrian, I recommend using .parent() for better performance... Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Wed, Feb 4, 2009 at 4:22 PM, Adrian Lynch wrote: > > Hello all. I have the following... > > > > > > > > > > > > ... and I want to

[jQuery] Re: Select element based on a value of its child element

2009-02-04 Thread Mauricio (Maujor) Samy Silva
$('div:has(input[value=2])') Maurício -Mensagem Original- De: "Adrian Lynch" Para: "jQuery (English)" Enviada em: quarta-feira, 4 de fevereiro de 2009 09:22 Assunto: [jQuery] Select element based on a value of its child element Hello all. I have the following... ... a