js:3个单选框,选中不同的单选框进行不同的操作,该如何实现 选不同的单选按钮,走不同的action就行了。docment.form.action=""; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!DOCTYPE html><html><head><meta charset="UTF-8"><title></title><script>window.onload=function(){ var aCat=document.getElementsByName('r_sel'); for(var i=0;i<aCat.length;i++) { aCat[i].onchange=function() { alert(this.value); } }}</script></head><body><input type="radio" value="1" name="r_sel" id="r_sel1"/><label for="r_sel1">分类1</label><input type="radio" value="2" name="r_sel" id="r_sel2"/><label for="r_sel2">分类2</label><input type="radio" value="3" name="r_sel" id="r_sel3"/><label for="r_sel3">分类3</label></body></html> window.operner为空或不是对象!! 谁能帮忙写段匹配table的正则表达式(哎,正则表达式老是学不会,悲哀!) 如何实现banner背景图的循环切换 介绍下思路 taobao这个弹窗代码怎么用 JS高手请进,问题解决全分奉上 js控件的问题? 如何使用javascript得到以下遍历字符串 window.open的窗口怎么让他自动最大化? 在页面中制作菜单,被下拉列表盖住了,急!!!! 如何才能使关闭按钮失效 求教,JQ如何在追加INPUT里的VALUE 散分了!!!!!!!!!!
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script>
window.onload=function()
{
var aCat=document.getElementsByName('r_sel');
for(var i=0;i<aCat.length;i++)
{
aCat[i].onchange=function()
{
alert(this.value);
}
}
}
</script>
</head>
<body>
<input type="radio" value="1" name="r_sel" id="r_sel1"/><label for="r_sel1">分类1</label>
<input type="radio" value="2" name="r_sel" id="r_sel2"/><label for="r_sel2">分类2</label>
<input type="radio" value="3" name="r_sel" id="r_sel3"/><label for="r_sel3">分类3</label>
</body>
</html>