[jQuery] how to select "this" ?
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 = $(this).text;
alert (linkContent);
});
the click event works, and an alert pops up, but the content of the
alert is a javascript function, written out in all its glory.
I can't imagine I'm too far off here. Can anyone assist?