[jQuery] event.currentTarget with table rows and IE7
Hi,
I got a problem using the following code:
$j = jQuery.noConflict();
$j(document).ready(function(){
$j('tr').mouseover(function(event) {
if (!event.currentTarget) {
alert('current target not given!');
return false;
}
alert(event.currentTarget.id);
});
});
When hovering a table data (td) element in Firefox everything works
fine: The id value of the row is displayed. In IE7 my error message is
displayed.
I would appreciate any ideas which would solve this problem.
Kind regards
Philipp