I have a div inside form something like
showing some information here
$(document).click(function(event) { var target = $( event.target ); // Check to see if the target is the div. if (!target.is( "div#idshow" )) { $("div#idshow").hide(); // Prevent default event -- may not need this, try to see return( false ); } });