【发布时间】:2012-07-01 13:47:10
【问题描述】:
我有这些输入:
<input type='radio' id='1' name='s' onclick='pieces(this.value);' value='6'>6
<input type='radio' id='2' name='s' onclick='pieces(this.value);' value='12'>12
<input type='radio' id='3' name='s' onclick='pieces(this.value);' value='24'>24
<input type='radio' id='11' name='v' onclick='pieces(this.value);' value='yes'>Yes
<input type='radio' id='12' name='v' onclick='pieces(this.value);' value='no'>No
当单击单选按钮时,我想将“name='s'”中的值传递给 var1,并将“name='v'”中的值传递给 var2 到函数 pieces(var1, var2)。
【问题讨论】:
-
@arttronics,已编辑。谢谢
标签: javascript html input arguments