本文介绍了如何使用javascript关闭ajax模型弹出.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在1个子页面的内容占位符中有两个modelpop.并且我已经在Header内容占位符中编写了用于close modelpop的Java脚本.但是...
I have two modelpop in 1 Child page''s content place holder. and i have write the java script for close modelpop in Header content placeholder. But it...
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript" language="javascript">
function closePopup() {
$find('ctl00_ContentPlaceHolder1_ModalPopupExtender1').hide();
// $find('ContentPlaceHolder1_ModalPopupExtender1').hide();
//var phn = document.getElementById('ctl00_ContentPlaceHolder1_txtAdmisnNo');
//document.getElementById('ctl00_ContentPlaceHolder1_txtAdmisnNo').value = "";
document.getElementById('ContentPlaceHolder1_ModalPopupExtender1').value = "";
}
// function showPopup() {
// $find('ctl00_ContentPlaceHolder1_ModalPopupExtender1').hide();
// }
function closePopup1() {
$find('ctl00_ContentPlaceHolder1_ModalPopupExtender2').hide();
// $find('ContentPlaceHolder1_ModalPopupExtender1').hide();
//var phn = document.getElementById('ctl00_ContentPlaceHolder1_txtAdmisnNo');
//document.getElementById('ctl00_ContentPlaceHolder1_txtAdmisnNo').value = "";
document.getElementById('ContentPlaceHolder1_ModalPopupExtender2').value = "";
}
</script>
推荐答案
这篇关于如何使用javascript关闭ajax模型弹出.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!