[jQuery] Re: Help with using the 'not' selector

2009-08-24 Thread MiKiTiE
Thanks for your help but this is still not working. All that happens is as soon as I click the word to make the div appear, it fades out again. I'm probably being totally thick here and missing something really simple but I just cannot figure it out. All I need is for the div to appear when click

[jQuery] Re: Help with using the 'not' selector

2009-08-17 Thread Ricardo
return false; in your 's click handler should avoid that, as it prevents the event from bubbling to the body. You can also check visibility: $().click(function(){ var opt = $(#'fm_options'); if( this != opt[0] && opt.is(':visible') ) opt.fadeOut('fast'); }); On Aug 17, 6:27 am, MiK

[jQuery] Re: Help with using the 'not' selector

2009-08-17 Thread MiKiTiE
Thanks for your reply. This is pretty much what I want - except I need my div to appear when a particular link is clicked, but since I've put the fire in the body, it's basically doing the fadeOut on every click (which stands to reason since everything is the body!) So really what I need is somet

[jQuery] Re: Help with using the 'not' selector

2009-08-14 Thread Wolf
hi you have ask if the id is different, then dissappear the div o element $("body").click(function(){ IF($(this).attr('id') !="FM_OPTIONS") { $("#FM_OPTIONS").fadeOut('fast'); } });