closing jquery colorbox modal window when clicking specific button which exists in the content came from external link -
I have a jquery colorbox application. In this application, when I click on a link, a jquery colorbox model box opens and this content comes from external links. There is a button inside the material and when I click on that button I want to close the colorbox window. Is there any way to close the colorboxes modal windows? The colorboxes have a self-closing button but I do not want to use it because my application requires a button to close it. I have the $ .fn.colorbox.close (); Clicked , but it was not working. Thanks for the advance ... Try to attach a jQuery live event to the
button. Let's say you add a button to the color box content with the class closebutton :
$ ('# cboxcontent .closebutton'). Live ('click', function () {$ .fn.colorbox.close ();});
Comments
Post a Comment