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
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
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
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');
}
});
4 matches
Mail list logo