if delete means get rid of that binding forever, unbind('mouseout')
if delete mean don't bother with the event anymore, jquery's
e.stopPropagation() should do it.
We've learned a lot in this thread!
On 1/7/07, Fabien Meghazi <[EMAIL PROTECTED]> wrote:
> > $('#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/
>
--
Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/