[jQuery] Re: Close/hide div on click outside

2007-11-18 Thread Codex
That doesn't seem to work. But I'm looking into your plugin suggestion. Thanks! On 16 nov, 23:59, Wizzud <[EMAIL PROTECTED]> wrote: > $('#master).click(function(e) { > (e.target && e.target.id == 'target') || $ > ('#target).fadeOut('slow'); > return false; > }); > > blockui plugin? > j

[jQuery] Re: Close/hide div on click outside

2007-11-16 Thread Wizzud
$('#master).click(function(e) { (e.target && e.target.id == 'target') || $ ('#target).fadeOut('slow'); return false; }); blockui plugin? jqmodal plugin? On Nov 16, 4:58 pm, Codex <[EMAIL PROTECTED]> wrote: > Ok, I see how this is working, but... if you click on the target div > it trig

[jQuery] Re: Close/hide div on click outside

2007-11-16 Thread Codex
Ok, I see how this is working, but... if you click on the target div it triggers the close also. Is there a way to 'tell' the target that when it's open, all underlying divs are disabled? On 16 nov, 10:29, Feijó <[EMAIL PROTECTED]> wrote: > Can you provide an code of your attempt? > > It may be s

[jQuery] Re: Close/hide div on click outside

2007-11-16 Thread Feijó
Can you provide an code of your attempt? It may be simple, or not. Depend on your page. You could set a master div, then just bind a click event on it to hide the target div target content master content $('#master).click(function() { $('#target).fadeOut('slow'); }); Feijó -