I have a simple popup (not an Iframe) where a user can send mail to each other. There is a submit button to send the information and a cancel button which should close the overlay.
I do have some trouble getting the close button to work.
The code looks like this:
<asp:Button runat="server" ID="btnCancel" Text="Cancel" />
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery("#<%= btnCancel.ClientID %>").click(function () {
jQuery.colorbox.close(); return false;
});
});
</script>
I have tried with both parent.jQuery.colorbox.close(), jQuery.fn.colorbox.close() but with no success.