【发布时间】:2015-06-19 10:27:21
【问题描述】:
按照说明,我在fancybox 2 中有以下内容:
afterLoad: function() {
this.title = '<center><a href="js/download.php?file=' + '../' + this.href + '">Download</a></center>';
}
现在,可以从标题中调用函数吗?比如:
afterLoad: function() {
this.title = '<center><div id="loadMore">Click</div></center>';
}
和
$('#loadMore').click(function(){
alert("hi ");
});
非常感谢。
【问题讨论】:
标签: jquery html fancybox title