$(document).click(function(){ $("#try").hide(); }); $("#try").click(function(e){ e.stopPropagation(); });
<body> <p id="try">Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries for previewing layouts and visual mockups. </p> </body>