I need to get the parent div of the hyperlink clicked. In the example below, this would be '.link-container'. However, this.parent or this.parents does not work.
jQuery('.link-container a').live('click', function(e) {
e.preventDefault();
alert(this.parent);
});
Any ideas on how to get this?.
Regards,
John
Your using it wrong. You have to wrap
thisin a jQ object. And parent is a function so you must call it asparent():