var intentionfundx = document.getElementById("intention_fund").getElementsByTagName("input"); var index1 = 0;//复选框判断至少选择一项; for (var i = 0; i < intentionfundx.length; i++) { if (!(intentionfundx[i].checked)) index1++; } if (index1 == (intentionfundx.length-1)) { alert("请选择一项意向资金!!"); return false; }
用了几个alert输出都到for循环哪里出现问题。。我只是个小白
慕粉3163795
相关分类