checkbox数组只有一个checkbox的时候length好像错误! 怎样解决这个问题?var count=document.form1.optcheck.length; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 写个的HTML和JAVASCRIPT给我看看。HTML、JAVASCRIPT各一行就够了! <form name="form1" id="form1" action="" method="post"><input type="checkbox" name="chk[]" name="one"/></form><script type="text/javascript"> chk = document.getElementsByName('chk[]'); alert(chk.length);</script> var count=document.form1.optcheck[].length;这样为什么不行? var count=document.form1.length; // 这样不行? var count=document.form1.optcheck[].length;这样为什么不行? <script type="text/javascript">var chk=new Array('1','2'); alert(chk.length);</script>你没有把它定义为数组,, 控件不能以数组获取到 session 问题!!!! PHP生成的图片不继承父目录的权限 老问题了,php下载doc文件打开后乱码 php5.2.13+apache1.6.1的安装配置问题 php gd库安装好了但是imagecreate还是不工作,imagecolorallocate提示没有定义 局部函数的问题 关于php_mysql.dll的问题 急救 win2000下运行没错 到linux服务器上运行出错 怎样判断本机ip是否在某一范围内? 新手问题:如何判断会员身份(最好能给出详解,分不够可以加) php分页问题 php+mysql输入自动显示对应信息!!!!!
<form name="form1" id="form1" action="" method="post">
<input type="checkbox" name="chk[]" name="one"/>
</form>
<script type="text/javascript">
chk = document.getElementsByName('chk[]');
alert(chk.length);
</script>
var chk=new Array('1','2');
alert(chk.length);
</script>
你没有把它定义为数组,, 控件不能以数组获取到