Hide div when click outside of same div using jquery

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();
});

Recent Solutions

Hire Our Website
Designer and Developer

phone-handset
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram