[jQuery] Blur event for DIVs

2007-10-23 Thread [EMAIL PROTECTED]
Hi, I want to trigger an action when a user moves the mouse outside of, or clicks outside of a particular DIV (named "contextMenu" in the example below). But nothing is triggering the event. Is my below code wrong or is there no such thing as a "blur" event for DIVs? Thanks, - Dave $

[jQuery] Blur event

2007-05-24 Thread Glen Lipka
Code sample: $("input#MyTextInput").blur( function() { setTimeout("$('#MyTextInput').focus()",0); } ); That works in FF. -- $("input#MyTextInput").blur( function() { $('#MyTextInput').focus(); } ); That does not work in FF. - Trying to re-focus