CSS

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

Rahul Chopda

Rahul Chopda is a web designer and front-end web developer with experience in HTML, CSS, jQuery also Author at TheCodeHubs.

Share
Published by
Rahul Chopda

Recent Posts

Testing hk

Testing

2 years ago

Create and Used PIPE in angular

In this article, we have to show Create and Used PIPE in angular

2 years ago

Operation

Testing

2 years ago

Create and Used PIPE in angular

In this article, we have to show Create and Used PIPE in angular

2 years ago

Create and Used PIPE in angular

In this article, we have to show Create and Used PIPE in angular

2 years ago

TETS NEW

test

2 years ago