<input type=text name=dd>
<input type=button value=Del onclick="document.all.dd.style.display='none'">

解决方案 »

  1.   

    <script language=javascript>
    function okClick(){ 
    var woyingjie=0
    for(i=0;i<document.all.check_id.length;i++){
    if(document.all.check_id[i].checked){
    woyingjie+=1;
    }
    }
    if(woyingjie==0){
    alert("选一个,ok?");
    }
    }
    </script>
    <form name="form1" method="post" action=".."> <input type="checkbox" name="check_id" size="6" value="1" > 
    <input type="checkbox" name="check_id" size="6" value="2" > 
    ... 
    <input type="button" name="ok" onclick="okClick()" value="submit">
    </form>
      

  2.   

    checkIdObj这个是参数吗?楼上,浏览器开太多了吧~~~^_^