Answers for "div click outside to hide javascript"

2

div click outside to hide javascript

$(document).click(function(){
 $("#try").hide(); 
});

$("#try").click(function(e){
  e.stopPropagation(); 
});
Posted by: Guest on September-10-2020
0

div click outside to hide javascript

<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>
Posted by: Guest on September-10-2020

Code answers related to "div click outside to hide javascript"

Browse Popular Code Answers by Language