> $('#foo').mouseout(function(e) {
> if (this == e.target) {
> // do your magic
> }
> }
>
> In essence, check that the item being moused out of is in fact the
> item that the handler is attached to.
Wow ! Thanks a lot ! It is indeed what I'm searching for.
By any chance, is it possible to delete the event ?
I could use .onemouseout() but I wonder if there's a way to do it
manually (not that I need to do it manually but it's just to add
something more in my knowledge ;-)
So instead of doing unbind() that would erase other events, how could I do :
$('#foo').mouseout(function(e) {
if (this == e.target) {
// code here
// and here, unbind the element know as variable "e" in this scope
}
}
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/