How can I set fancyBox's contents dynamically?
- by alex
I have tried
$('.selector').fancybox({
scrolling : 'no',
titleShow : false,
type : 'inline',
content : '<p>hello</p>'
But it did not work
I have also tried adding the option
onComplete: function() {
$('#fancybox-inner').html(contents);
}
Except then when fancyBox is closed, it will not launch again.
How can I dynamically set the contents of fancyBox, and retain all of it's functionality?
Thanks