Answers for "how to handle click outside a div"

0

how to detect click outside div

$(window).click(function() {
  //Hide the menus if visible
});

$('#menucontainer').click(function(event){
  event.stopPropagation();
});
Posted by: Guest on November-24-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language