Thanks for the tip and also the cycle plugin - It works great!
-- Forwarded message --
From: Mike Alsup
Date: Jun 16, 4:17 pm
Subject: Need help cuz I don't get 'this'
To: jQuery (English)
> $(this).find('img').attr('src');
jQuery selectors accept a 2nd argument for context,
>From a different forum I got this which works:
$(this).find('img').attr('src');
On Jun 16, 11:18 am, Logictrap wrote:
> I'm using the jqery cycle plugin with an onAfter & OnBefore function.
>
> These functions process the current div as 'this
I'm using the jqery cycle plugin with an onAfter & OnBefore function.
These functions process the current div as 'this' - what I sent was
the code in my div that is getting passed as 'this'.
I can see that using children is the way to get the attribute I want,
but I don't quite understand how to
Thank you that worked!!!
I think I may understand how to use children if you could also show
how to get the img src attribute when 'this' contains:
http://www.test.org"; target="_blank">Test Logo
wrote:
> Like MorningZ said, more info would be helpful, but this should work:
>
> $('#output').html('SRC: ' + $(this).children('img').attr('src'));
>
> --Erik
>
> On Sun, Jun 14, 2009 at 7:02 AM, Logictrap wrote:
>
> > I need
I need to get the src attribute of an img element that is a sub-
element of 'this' but I can't figure out how to traverse 'this' to get
there.
The contents of 'this' are:
this works:
$('#output').html("ID: " + this.id);
This does not:
$('#output').html("SRC: " + this.img.src)
Is there a simple method for determining the element number for a
click event?
Using this html code:
Some Text
Some Text
Some Text
Some Text
Some Text
Is there a click event that will tell you the element number of which
was clicked on starting with 0 as the first one?
ie if you clicked on t
he Title text is a header.
>
> I've put my code in the jsbin page.http://jsbin.com/axeji/edit
>
> Paul
>
> On Nov 7, 7:03 pm, Logictrap <[EMAIL PROTECTED]> wrote:
>
> > How do I access just the titles (ie 'Title 1', 'Title 2')? Every
> > m
How do I access just the titles (ie 'Title 1', 'Title 2')? Every
method I tried also includes the content.
I tired using: not('[li]") & parent()
This is an example list structure. I want to be able to get just
the
Title 1
Content 1
Title 2
Content 2
T
How do I access just the titles (ie 'Title 1', 'Title 2')? Every
method I tried also includes the content.
I tried using: not('[li]") & parent()
This is an example list structure. I want to be able to get just
the titles: (ie Title 1, Title 2, Title 3)
Title 1
Content 1
Titl
10 matches
Mail list logo