[ ... 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
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
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...
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
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
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 =
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:
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
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
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();
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');
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
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.
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
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
15 matches
Mail list logo