Alert(document.all("checkbox1").value)
解决方案 »
- 请大家帮忙写个正则
- 求推荐一本Javascript教材
- javascript是实现动态目录树的好方法么?
- 怎样在jsp中在两个列表框之间通过按钮动态添加和删除列表中元素
- 刚从网上下了一个JS的导航条,有一个内容不会改,有那么好心的朋友帮忙改一下了
- 关于jquery validate 有错误就停止执行的方法
- 页面2.html中有一个iframe,这个iframe里面有产品的记录列表,请问在iframe中进行浏览后怎样才能像普通页面那样返回1.html?
- 一分钟送分!为什么我的IE看到了裸体?
- 有人吃必胜客么?谁知道这是咋么回事?
- 怎么向另外一个页面传递参数?
- 共同分享JavaScript的学习经验!
- 请问javascript里有动应回车的事件嘛?
<% for i=6 to 11 %>
<input type="radio" id="r_d" name="r_d" value="<%=i%>">
<%next%>
<script>
for (i=0;i<12;i++){
if (r_d(i).checked==true){
aa=r_d(i).value
}
}
</script>
{
var aa=document.getElementsByName ("mm");
var a0=0
for (i=0;i<aa.length;i++)
{
if (aa[i].checked==true&&a0==1);
{
a0++;
alert (aa[i].value)
}
else
{
alert("只能選一個哦")
}
}
}
<input name=button type="button" onclick="xxxx()">請問錯在哪里呀。
{
alert (aa[i].value)
}
else
{
alert("只能選一個哦")
}
a0++;
{
var cc=document.getElementsByName ("mm");
for (i=0;i<cc.length;i++)
{
if (cc[i].checked==true);
{
alert(cc[i].value)
//alert (aa[i].value)
}
}
}
<input name=button type="button" onclick="xxxx()">
頁面有多少個checkbox﹐就alert多少個checkbox的value﹐我又沒選中。。搞不懂﹗。。