asp单选框关联代码怎么写
怎么样才能点其中一个单选框就把和他放在一起的另外一组单选框同时选中示例如下:<p><inputtype="radio"name="zhekou"value="0.88">...
怎么样才能点其中一个单选框就把和他放在一起的另外一组单选框同时选中
示例如下:
<p>
<input type="radio" name="zhekou" value="0.88">
<input type="radio" name="zhuangtai" value="1">
不打折</p>
<p>
<input type="radio" name="zhekou" value="0.95">
<input type="radio" name="zhuangtai" value="1">
打折</p>
<p>
<input type="radio" name="zhekou" value="1">
<input type="radio" name="zhuangtai" value="2">
特价 </p> 展开
示例如下:
<p>
<input type="radio" name="zhekou" value="0.88">
<input type="radio" name="zhuangtai" value="1">
不打折</p>
<p>
<input type="radio" name="zhekou" value="0.95">
<input type="radio" name="zhuangtai" value="1">
打折</p>
<p>
<input type="radio" name="zhekou" value="1">
<input type="radio" name="zhuangtai" value="2">
特价 </p> 展开
2个回答
展开全部
<input ID="不打折" name="zhekou" type="radio" value ="0.88" onclick="正价.checked=checked" /><Label for="不打折">不打折</Label>
<input ID="打折" name="zhekou" type="radio" value ="0.95" onclick="折后价.checked=checked" /><Label for="打折">打折</Label>
<input ID="特价" name="zhekou" type="radio" value ="1" onclick="促销价.checked=checked" /><Label for="特价">特价</Label>
<br>
<input ID="正价" name="zhuangtai" type="radio" value ="1" onclick="不打折.checked=checked" /><Label for="正价">正价</Label>
<input ID="折后价" name="zhuangtai" type="radio" value ="1" onclick="打折.checked=checked" /><Label for="折后价">折后价</Label>
<input ID="促销价" name="zhuangtai" type="radio" value ="2" onclick="特价.checked=checked"/><Label for="促销价">促销价</Label>
另外一道题已经回答。
<input ID="打折" name="zhekou" type="radio" value ="0.95" onclick="折后价.checked=checked" /><Label for="打折">打折</Label>
<input ID="特价" name="zhekou" type="radio" value ="1" onclick="促销价.checked=checked" /><Label for="特价">特价</Label>
<br>
<input ID="正价" name="zhuangtai" type="radio" value ="1" onclick="不打折.checked=checked" /><Label for="正价">正价</Label>
<input ID="折后价" name="zhuangtai" type="radio" value ="1" onclick="打折.checked=checked" /><Label for="折后价">折后价</Label>
<input ID="促销价" name="zhuangtai" type="radio" value ="2" onclick="特价.checked=checked"/><Label for="促销价">促销价</Label>
另外一道题已经回答。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询