[jQuery] Re: mouseout seems to occur while still in div

2007-06-14 Thread wswilson
Hmmm, no luck so far using the target condition but I found a workaround using hover instead of mouseout: $('div.a').hover(function() {},function() { $(this).children('span.b').hide(); }); On Jun 13, 6:20 pm, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote: > (untested) You need to do: > >

[jQuery] Re: mouseout seems to occur while still in div

2007-06-14 Thread wswilson
Thanks for the help...I appreciate it. On Jun 13, 6:20 pm, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote: > (untested) You need to do: > > $('div.a').mouseout(function(e) { > if (e.target == this) { > $(this).children('span.b').hide(); > } > > }); > > Cheers, > -js > > On 6/13/07, ws

[jQuery] Re: mouseout seems to occur while still in div

2007-06-13 Thread Jonathan Sharp
(untested) You need to do: $('div.a').mouseout(function(e) { if (e.target == this) { $(this).children('span.b').hide(); } }); Cheers, -js On 6/13/07, wswilson <[EMAIL PROTECTED]> wrote: Here is my code: $(function() { $('div.a span.b').hide(); $('div.a h1').

[jQuery] Re: mouseout seems to occur while still in div

2007-06-13 Thread Karl Rudd
It's something of a "feature" of the mouseout event. More details here: http://www.quirksmode.org/js/events_mouse.html#link8 Karl Rudd On 6/14/07, wswilson <[EMAIL PROTECTED]> wrote: Here is my code: $(function() { $('div.a span.b').hide(); $('div.a h1').mouseover(fu