$(document).click(function(e){
el = $(e.target);
alert( el.text() );
});
jQuery normalizes the target property of the event object, so don't
worry about IE.
- ricardo
On Dec 3, 9:12 am, revivedk <[EMAIL PROTECTED]> wrote:
> Hi.
> how would I register what element is clicked on the site?
Your problem is that you're using the DOM "this" instead of the jQuery
$(this).
Read more about that here:
http://remysharp.com/2007/04/12/jquerys-this-demystified/
Andy matthews
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of revivedk
Sent:
2 matches
Mail list logo