[jQuery] Re: Click event not fired when hide() called by blur()

2009-05-25 Thread cohq82
This works. Thanks On May 24, 11:29 pm, Ricardo wrote: > Set a flag on mousedown on the DIV to prevent blur (mousedown fires > first): > > $().ready(function(){ >  var divclick = false; > >  $('#aa') >   .focus(function() { >     $('#bb').show(); >   }) >   .blur(function() { >     if ( divc

[jQuery] Re: Click event not fired when hide() called by blur()

2009-05-25 Thread Ricardo
Set a flag on mousedown on the DIV to prevent blur (mousedown fires first): $().ready(function(){ var divclick = false; $('#aa') .focus(function() { $('#bb').show(); }) .blur(function() { if ( divclick ) return( divclick = false ); $('#bb').hide(); }); $('#bb') .click(fu