Hide div when click outside of same div using jquery
$(".button").click(function(e){ $("div").show(); e.stopPropagation(); }); $("div").click(function(e){ e.stopPropagation(); }); $(document).click(function(){ $("div").hide(); });
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.