I need to click on a div
(it's a register), it will close.
What selector should I use so that by clicking anywhere outside the div this div closes?
$(????).on("click", function(){
$('div').hide();
});
If you click on any part or element of div
you will not be able to close because the user will be filling in the data.