怎么关闭jquery.boxy
弹出的模态层代码如下
<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
谢谢。