怎么关闭jquery.boxy

piperzero 2012-08-02 06:12:56
弹出的模态层代码如下
<script src="js/jquery.js"></script>
<script src="js/jquery.form.js"></script>

<script>
// prepare the form when the DOM is ready
$(document).ready(function() {
// bind form using ajaxForm
$('#modify_form').ajaxForm({
//beforeSubmit:CheckForm,//提交前运行函数验证,注意大小写

// target identifies the element(s) to update with the server response
target: '#htmlExampleTarget2',

// success identifies the function to invoke when the server response
// has been received; here we apply a fade-in effect to the new content
success: function() {

$('#htmlExampleTarget2').fadeIn('slow');










}
});

});
</script>

<form action="add.php?action=modify" method="post" name="modify_form" id="modify_form" onSubmit="return CheckForm();">


<table cellpadding="0" cellspacing="3" class="tableborder" width="100%">

<tr>
<td width="100">sex:</td>
<td>
<select name="sex" id="sex" class="selectcss">
<option value="no">No</option>
<option value="yes">Yes</option>
</select></td>
</tr>

<tr><td colspan="2" ><input type="submit" name="button" id="add_info" value=""></td></tr>
</table>

</form>
复制代码
点击更新表单会替换页面上id=htmlExampleTarget2的部分(无刷新更新),但是boxy打开的层仍然打开在,无法关闭
请问怎么样在更新了原来页面后关闭boxy
谢谢。
...全文
203 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

87,997

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧