本文介绍了隐藏显示问题............................的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨朋友
i有创建javascript功能潜水隐藏显示并且它正常工作我点击是按钮div显示当点击没有div是隐藏
我的问题是当页面是lode潜水时自动隐藏所以给我一些想法
感谢提前
< script >
函数reg_phd_unction(value) {
if(value ==209){
document.getElementById(ctl00_ContentPlaceHolder1_dv_reg_phd)。style.display =block;
}
else if(value ==210)
{
document.getElementById(ctl00_ContentPlaceHolder1_dv_reg_phd)。style.display = quot; none;
}
}
< ; asp:RadioButton onclick = reg_phd_unction(this.value) GroupName = member5 ID = rd_phd_yes
Text = 是值= 209 runat = 服务器 />
< asp:RadioButton onclick = reg_phd_unction(this.value) GroupName = member5 ID = rd_phd_no
Text = No Value = 210 runat = server />
< div id =dv_reg_phdrunat =serverstyle =display:none;>
解决方案
hi friends
i have create javascript function dive hide show and it work properly i click yes button div is show and when click no div is hide
and my problem is when page is lode dive automatic hide so give me some idea
thanks to advance
<script> function reg_phd_unction(value) { if (value == "209") { document.getElementById("ctl00_ContentPlaceHolder1_dv_reg_phd").style.display = "block"; } else if (value == "210") { document.getElementById("ctl00_ContentPlaceHolder1_dv_reg_phd").style.display = quot;none"; } }
<asp:RadioButton onclick="reg_phd_unction(this.value)" GroupName="member5" ID="rd_phd_yes" Text="Yes" Value="209" runat="server" /> <asp:RadioButton onclick="reg_phd_unction(this.value)" GroupName="member5" ID="rd_phd_no" Text="No" Value="210" runat="server" />
<div id="dv_reg_phd" runat="server" style="display: none;">
解决方案
这篇关于隐藏显示问题............................的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!