On Aug 2, 2007, at 4:50 PM, Stephan Beal wrote
That limits the searches to under the given content. (Though i'm not
100% certain whether you need the $() around 'this' or not.)
No, it isn't necessary. So, this would work:
$('span', this)
as would this:
$(this).find('span')
On Aug 2, 10:17 pm, cfdvlpr <[EMAIL PROTECTED]> wrote:
> However, I'd like to also get access to the attributes of a span
> within that li. What line of code would give me a variable with that
> span's attributes?
You can use the $('selector') syntax, simply pass on a context
argument as the sec
Thanks John, that works great...
Here's another question that is somewhat related:
I have this line as the first line of the function which gives me
access to all the attributes of the li element:
l = $(this);
However, I'd like to also get access to the attributes of a span
within that li. Wh
> $("[EMAIL PROTECTED]'history']" OR '[EMAIL PROTECTED]').click(function()
Like so:
$("[EMAIL PROTECTED]'history'], [EMAIL PROTECTED]').click(function() ...)
--John
Another question I have is how would you combine a keyup event like
this:
$( [EMAIL PROTECTED]'history'].click || [EMAIL PROTECTED] .keyup )
(function() {
});
5 matches
Mail list logo