[jQuery] Re: jQuery Selector Help

2009-12-23 Thread Mike Walsh
[ ... snipped ... ] ... and after looking at your code (which always helps), I see you're referencing this (as opposed to jQuery's $(this)), which is why html() wouldn't have worked. In that case, sure.  It's been said that this is more efficient than creating a jQuery reference to it via

[jQuery] Re: jQuery Selector Help

2009-12-22 Thread Mike Walsh
On Dec 22, 8:03 am, Dhruva Sagar dhruva.sa...@gmail.com wrote: I would suggest you to wrap the sections within * into a div and select that div. Thanks Regards, Dhruva Sagar. [ ... snipped ... ] Unfortunately I don't have control of the generated content. The content is generated by a

[jQuery] Re: jQuery Selector Help

2009-12-22 Thread Šime Vidas
Well, you selected BR elements, which are empty elements, so it's no mystery why this.innerHTML returns undefined... Also, DIVs shouldn't appear inside SPANs...

Re: [jQuery] Re: jQuery Selector Help

2009-12-22 Thread Charlie Griefer
2009/12/22 Šime Vidas sime.vi...@gmail.com Well, you selected BR elements, which are empty elements, so it's no mystery why this.innerHTML returns undefined... Also, DIVs shouldn't appear inside SPANs... He did state that he's using generated HTML. He has no control over it. Mike - this

[jQuery] Re: jQuery Selector Help

2009-12-22 Thread Mike Walsh
On Dec 22, 12:09 pm, Charlie Griefer charlie.grie...@gmail.com wrote: 2009/12/22 Šime Vidas sime.vi...@gmail.com Well, you selected BR elements, which are empty elements, so it's no mystery why this.innerHTML returns undefined... Also, DIVs shouldn't appear inside SPANs... He did

Re: [jQuery] Re: jQuery Selector Help

2009-12-22 Thread Charlie Griefer
On Tue, Dec 22, 2009 at 10:34 AM, Mike Walsh mike_wa...@mindspring.comwrote: [ ... snipped ... ] Thanks for pointing me in the right direction. This is what I ended up getting to work: jQuery(span.event, .calendar-table).each(function(){ var html =

Re: [jQuery] Re: jQuery Selector Help

2009-12-22 Thread Charlie Griefer
On Tue, Dec 22, 2009 at 10:40 AM, Charlie Griefer charlie.grie...@gmail.com wrote: On Tue, Dec 22, 2009 at 10:34 AM, Mike Walsh mike_wa...@mindspring.comwrote: [ ... snipped ... ] Thanks for pointing me in the right direction. This is what I ended up getting to work:

[jQuery] Re: Not selector help

2008-09-03 Thread Josh Nathanson
This should do it... $(input:checkbox:not(#myid)).attr(checked,false); -- Josh - Original Message - From: Brad [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Wednesday, September 03, 2008 11:57 AM Subject: [jQuery] Not selector help I'm looking for the

[jQuery] Re: Broken Selector Help

2007-08-25 Thread Wizzud
Using new v1.1.4 :has() syntax ... $('#rank-products table.product-table tr:has(table):first-child').addClass(); Brandon-38 wrote: Ugh. LOL. I think I'll just change the DOM, it may be easier that way. Thanks, Karl. Brandon On Aug 24, 10:13 pm, Karl Swedberg [EMAIL

[jQuery] Re: Broken Selector Help

2007-08-25 Thread Karl Swedberg
Using new v1.1.4 :has() syntax ... $('#rank-products table.product-table tr:has(table):first-child').addClass(); Excellent! Come to think of it, this approach is possible with the deprecated syntax, too: $('#rank-products table.product-table tr[table]:first- child').addClass();

[jQuery] Re: Broken Selector Help

2007-08-24 Thread Karl Swedberg
Hi Brandon, the + combinator is for the next sibling element. since td is never a sibling of tr, your selector isn't going to work there. To get the first td in each tr, use the :first-child pseudo-class : jQuery('#rank-products table.product-table td:first-child').addClass ('rank-handle');

[jQuery] Re: Broken Selector Help

2007-08-24 Thread Brandon
Here's the basic HTML: table cellspacing=0 class=product-table tr td/td td{Thumbnail}/td td table cellspacing=0 tr td colspan=2{Product Name}/td

[jQuery] Re: Broken Selector Help

2007-08-24 Thread Herr M.
It would be easier if you posted some of the HTML as well, it's kind of hard to analyse your querystring without knowing the DOM structure. I don't know if this helps, but if #rank-products refers to the table, then you query is looking for the first td inside a tr inside a table inside a table.

[jQuery] Re: Broken Selector Help

2007-08-24 Thread Karl Swedberg
On Aug 24, 2007, at 9:52 PM, Brandon wrote: Here's the basic HTML: snip the :first-child matches the child table as well, which won't work for me. Is there a way to exclude nested tables? -Brandon Well, technically it's matching the table cell within the the child table, not the

[jQuery] Re: Broken Selector Help

2007-08-24 Thread Brandon
Ugh. LOL. I think I'll just change the DOM, it may be easier that way. Thanks, Karl. Brandon On Aug 24, 10:13 pm, Karl Swedberg [EMAIL PROTECTED] wrote: On Aug 24, 2007, at 9:52 PM, Brandon wrote: Here's the basic HTML: snip the :first-child matches the child table as well, which