让Name一样就行.传过去的自动是1,3,2这种形式的
<input type=checkbox name=aa ...
<input type=checkbox name=aa ...
<input type=checkbox name=aa ...
<input type=checkbox name=aa ...
....楼主试一试
<input type=checkbox name=aa ...
<input type=checkbox name=aa ...
<input type=checkbox name=aa ...
<input type=checkbox name=aa ...
....楼主试一试
解决方案 »
- 图片切换有时不能显示文字
- 可改变扇区大小的饼状图
- 如何jquery实现Select的readonly?
- 高分求:用js如何把一个excel表格另存为html格式
- 在客户端修改图片大小的问题
- 对层的控制!(高手帮忙呀!!!)(急急急急急急 急急急急 急急急急 )
- 求JavaScript DOM电子文档,进来顶一下就有分哦,大家支持!!
- 请教高手如何利用js实现动态二级菜单--急!!
- 用JS获取别的网站页面html源代码的问题
- 小白提问:用JS实现图片大小改变的不解
- JS的一类、、那位高手帮我看看一下哪里有错、、
- 5.77*6600*0.0015 = 57.123000000000005 ? javascript的bug?
<input type="checkbox" id="2" onclick="(this.checked==true)?saveIt(this.id):delIt(this.id)" name="check" />
<input type="checkbox" id="3" onclick="(this.checked==true)?saveIt(this.id):delIt(this.id)"name="check" />
<script language="javascript">
<!--
var tempId = "";
function saveIt(val)
{
tempId = tempId + val + ",";
alert(tempId);
}
function delIt(val)
{
tempId = tempId.replace(val+",","");
alert(tempId);
}
-->
</script>