Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 414
Shyju Avatar asked Oct 24 '22 19:10

Shyju


1 Answers

This should work:

parent.$.fn.colorbox.close();
like image 176
Davi Ferreira Avatar answered Oct 27 '22 10:10

Davi Ferreira