The event you get from jQuery handlers is normalised. CurrentTarget is
just "this" in the function.

mouseover(event){
alert(this.id);
}

On Sep 19, 7:00 am, Philipp <philipp.ma...@googlemail.com> wrote:
> 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

Reply via email to