这是我的

javascript

function disp(s)

{

var st=document.getElementById("stats");

st=st.options[st.selectedIndex].text;

document.getElementById("sp").innerHTML="this is changing :"+s;

if(st=="Other")

{

document.getElementById(s).style.display="inline";

}

else

document.getElementById(s).style.display="none";

}

这是我的前端

Rain Guage Status

Good

Bad

Other

Exposure

Good

Bad

Other

我面临的问题是,只有当显示rainguage文本框时,曝光特技纸盒才会打开…除了显示文本框ID的功能外,两个下拉菜单都没有关系.

如果显示rainguage tb并显示曝光tb,我无法隐藏曝光tb,除非我隐藏rainguage tb.请帮忙

Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐