我现在有<DIV id="CID" style="DISPLAY: none; WIDTH: 100%" ms_positioning="FlowLayout"></DIV>
我在提交的时候怎么判断
CID.style.display为inline?
就是在if(????)在????中如何判断CID.style.display为inline?

解决方案 »

  1.   

    在FORM的TAG中加入onsubmit事件来判断
      

  2.   

    div与提交有关系吗?
    在提交的按钮里添加相关的处理函数就可以了,如:
    <asp:Button OnClientClick="return check()" />function check()
    {
       var div = document.getElementById("CID");
       if (div.style.display == "inline")
       {
          //要执行的代码
       }
       else
       {
          //要执行的代码
       }   return true; //return false; //返回false就不会提交页面
    }