[jQuery] Re: Set property based on sibling width()

2009-10-06 Thread bombaru
Wow! It really is that simple. Thanks. On Oct 5, 12:19 pm, brian wrote: > $('.caption').each(function() > { >   $this.width($this.find('img').width()); > > } > On Mon, Oct 5, 2009 at 11:52 AM, bombaru wrote: > > > Can somebody help me out?  I'm trying to set a width of a span class > > based

[jQuery] Re: Set property based on sibling width()

2009-10-05 Thread brian
$('.caption').each(function() { $this.width($this.find('img').width()); } On Mon, Oct 5, 2009 at 11:52 AM, bombaru wrote: > > Can somebody help me out?  I'm trying to set a width of a span class > based on the width of the image inside of it.  I've got a container > that will also have a bunch