[jQuery] how to select this ?

2007-10-21 Thread photoboy
I'm just starting out with jQuery and am already staring at a wall. The goal: attach a mouse event to all links in a paragraph with id 'para' and display the text of the link. this is what I've come up with, which obviously doesn't work: $(#para a).click(function(){ var linkContent =

[jQuery] Re: how to select this ?

2007-10-21 Thread photoboy
Wow Mike, thanks. I'm not sure why that worked, but it definitely did the trick! Much appreciated. On Oct 21, 3:01 pm, Mike Alsup [EMAIL PROTECTED] wrote: var linkContent = $(this).text(); $(this) returns a jQuery object, not a DOM element. On 10/21/07, photoboy [EMAIL PROTECTED] wrote