$(document).ready(function () { $("html").click(function (e) { if (e.target == $(".add-receiver")[0]) { } }); });