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

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -