Perfect! It works! Thanks again for the help. I'm really enjoying this
On Feb 11, 4:21 am, "Robert Nyman" <
rob...@robertnyman.com> wrote:
> Hi Graham,
>
> The reason is that only the elements which are are selected through the $
> selector will get the extra DOMAssistant methods added to it.
> What this means is that in your function receiving the event, you need to
> reference "this" with in the same way, like this:
>
> $(this).addClass("trhover");
>
> Another solution can be using CSS selectors to select the elements to begin
> with, to get aroud it. Like this:
>
> $("body tr").addEvent("mouseover", f);
>
> In the long run, probably in the next version, it will hopefully not be
> mandatory to use the $ selector in a case such as yours. However, it does
> help to distinguish anything extra we might want to add to elements, so when
> in doubt, always surround your element with $.
>
> Best regards,
> Robert
>