[jQuery] getting clicked element
Hi.
how would I register what element is clicked on the site?
I need to be able to register what element is clicked, on the entire
DOM.
$(document).click(function () {
var oBj = this;
//alert($(oBj).text());
});
this doesn't work, as it returns the entire DOM. and I only need the
element that is being clicked on.
how would I do this?