我在这里有一个较早的帖子,但答案根本没有帮助。我有这样的上传功能:
<iframe class="iframe" name="message" src="upload.php" style="display:none;"></iframe>
<form action="upload.php" method="post" enctype="multipart/form-data" target="message">
Select a file: <input type="file" name="upload">
<input type="submit">
</form>
我正在尝试做这样的事情:
$('.iframe').fancybox({
'hideOnContentClick': true
});
因此,当 upload.php 给出响应(“文件成功上传”)时,它会进入 iframe,这很棒。但我需要 iframe 来显示。upload.php 回复消息后如何取消隐藏 iframe?