[jQuery] Re: If user clicks in one place OR another place OR another place...

2007-08-02 Thread Karl Swedberg
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')

[jQuery] Re: If user clicks in one place OR another place OR another place...

2007-08-02 Thread Stephan Beal
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

[jQuery] Re: If user clicks in one place OR another place OR another place...

2007-08-02 Thread cfdvlpr
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

[jQuery] Re: If user clicks in one place OR another place OR another place...

2007-08-02 Thread John Resig
> $("[EMAIL PROTECTED]'history']" OR '[EMAIL PROTECTED]').click(function() Like so: $("[EMAIL PROTECTED]'history'], [EMAIL PROTECTED]').click(function() ...) --John

[jQuery] Re: If user clicks in one place OR another place OR another place...

2007-08-02 Thread cfdvlpr
Another question I have is how would you combine a keyup event like this: $( [EMAIL PROTECTED]'history'].click || [EMAIL PROTECTED] .keyup ) (function() { });