Adding button click event when Fancybox popup opened

Posted by Tom Bell on Stack Overflow See other posts from Stack Overflow or by Tom Bell
Published on 2010-05-27T09:52:16Z Indexed on 2010/05/27 10:01 UTC
Read the original article Hit count: 156

Filed under:
|
|

I'm trying to add a button onclick event to a button tag when I load my Fancybox popup using the following code:

var processOrder = function(id) {
    $('#processPopupLink').fancybox({
        'hideOnContentClick': false,
        'frameWidth': 850,
        'frameHeight': 695
    }).click();

    $('#processComplete').click(function() {
        alert('debug');
    });
}

However, it's not showing the message box when I click the button, I have no idea why it is not working, any help would be appreciated.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html