how to close Modal while clicking outside of the modal using jquery : how to close Modal while clicking outside of the modal using jquery
$(document).ready(function () {

    $("body").click(function (e) {
        var x = e.pageX - e.target.offsetLeft;
        var y = e.pageY - e.target.offsetTop;

        if ((x < 75) || (x > 1275)) {

            $('.modal-backdrop').fadeOut();
            $('.modal').fadeOut("fast");
        }

    });
});