lightbox - How to close jquery lighbox popup without clicking close option at top -


I am using the jquery lightbox plugin in my website.

Whenever I have a lightbox popup, I need to click on the top on the close button (X) I < p> Can anyone help when I click anywhere outside the popup box?

Try it out:

  $ ("# overlay"). Click (function () {$ ("# lightbox"). Hide ();});   

Every time we open a lightbox, there is a "overlay" id with a divisible device in the background so if you want to stop jquery lighbox popup without clicking the closed option You can close it by clicking outside the lightbox. So div "overlay" exists outside the lightbox and we can force click event with it to close the lightbox.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -