这是来源Div
<div id="attachedPDF" style="display:none">...</div>
当我点击按钮时,我想在fancybox中加载这个div:
<a title="Send Batch" href="javascript:void(0);" onclick="sendBatch();"></a>
答案 0 :(得分:-2)
function showFancy(){
$.ajax({
type:'POST',
url: basepath+'<require method path>',
data:{< require data to pass>},
success: function(responseText, statusText, xhr, $form , data){
$.fancybox("#attachedPDF");
}
});
}