How To Close A Popup When Clicking Outside

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

Submit a Comment

Your email address will not be published.

Subscribe

Select Categories