如何判断div的状态?
<%if document.getElementById("namecheck").style.visibility="visible" then%><input type="radio" name="chongm" value="-1"><%else%><input type="radio" name="chongm" value="-1" checked="checked"><%end if%>请问各位大虾,这样写为什么提示错误,说没有指定对象?但是在<script language="javascript">
function mycheck(){
if(namecheck.style.visibility="visible" )
{alert("请选择重名选项!");form1.sfzh.focus();return;}
form1.submit();
}
</script>显示正确。请各位指教!谢谢!