You could try something like this...
$('#myTrigger').click(function(){ $('#myDiv').show(); $(document).one('click', function(){ $('#myDiv').hide(); return false; }); return false; }); james_027-2 wrote: > > > Hi, > > I am trying to make a simple <div> that will pop which will be close > by just clicking to any part of the page. I have no idea of how to do > this. I have try something like this > > $(document).click(function(e){ > $('[EMAIL PROTECTED]').hide(); > }); > > > $(body).click(function(e){ > $('[EMAIL PROTECTED]').hide(); > }); > > but all my other click function on specific html tag won't work > anymore, it seems to be overide. > > Thanks > james > > > -- View this message in context: http://www.nabble.com/popup-%3Cdiv%3E-tf4420012s15494.html#a12634939 Sent from the JQuery mailing list archive at Nabble.com.