In this article, I will show you how to close a popup when clicking outside in the HTML website using jquery.
Before start please read this article How to Create Pop-up in HTML with CSS using jQuery
Add jQuery
jQuery( '.rules_popup_wrap' ).click(function(){ jQuery(this).hide(); }).children().click( function(e) { return false; });