I have problem with fancybox.
I want to write a function that will run when the fancybox opened. How and when to call the function?
Example:
func
The newest way how to make it work is using afterShow or beforeShow:
$("a#registrace").fancybox({
beforeShow : function() {
alert('its working!');
validate_reg_form();
}
});
I am loading registration form through ajax and I need to enable form-validation. In both cases (before and after), the content is already loaded.