I don´t know if I have forgotten how to do so or if it´s a bug, but I just can´t find the caller's reference using jQuery.
I´m doing the following:
$(document).ready(function() {
$('#parent a.item').click(doSomething);
});
function doSomething(e) {
// Alerts for demostrational purposes only
alert(e.target);
alert(e.currentTarget);
alert(this);
alert($(this)[0]);
}
All the alerts show the hyperlink´s href attribute(page URL + '#').
Am I doing something wrong?
Notes: Using jQuery 1.4.2.