Shyju
Shyju

Reputation: 218762

jQuery Colorbox: Outside HTML (AJAX) How to close on button click of child window

In page 1(first.aspx) I am using ColorBox to show a model popup where I am showing another HTML page inside that (outside HTML - AJAX). I want to add a button to my second page and when a user clicks on that button I want to close the ColorBox. What method should I call for that?

Upvotes: 5

Views: 2020

Answers (1)

Davi Ferreira
Davi Ferreira

Reputation: 96

This should work:

parent.$.fn.colorbox.close();

Upvotes: 3

Related Questions