Adding Button Click Event When Fancybox Popup Opened
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').fancyb
Solution 1:
From the Fancybox API:
onComplete - Will be called once the content is displayed.
$('#processPopupLink').fancybox({
onComplete: function() {
$('#processComplete').click(function()
{
alert('debug');
});
}
});
Post a Comment for "Adding Button Click Event When Fancybox Popup Opened"