gpt4 book ai didi

javascript - 取消选中所有其他复选框

转载 作者:行者123 更新时间:2023-11-28 01:46:06 25 4
gpt4 key购买 nike

<分区>

在一个表单中,我有一个字段集,其中有几个复选框。该系列中的最后一个复选框将被标记为“无”,选中后将取消选中所有其他选项。重新单击其中一个选项时,此时应取消选中“无”框。我真的很困惑如何做到这一点。这是我的 html

</fieldset>
<fieldset class="checkboxx">
<legend>What Extreme Sports Do You You Play?(check all that apply):</legend>

<label><input type="checkbox" id="chkSkateboarding" name="chkSkateboarding"
<?php if($Skateboarding) echo ' checked="checked" ';?>
value="Skateboarding" tabindex="250"> Skateboarding</label>

<label><input type="checkbox" id="chkPaintball" name="chkPaintball"
<?php if($Paintball) echo ' checked="checked" ';?>
value="Paintball" tabindex="260"> Paintball</label>

<label><input type="checkbox" id="chkSnowboarding" name="chkSnowboarding"
<?php if($Paintball) echo ' checked="checked" ';?>
value="Snowboarding" tabindex="270"> Snowboarding</label>

<label><input type="checkbox" id="chkMountainBiking" name="chkMountainBiking"
<?php if($MountainBiking) echo ' checked="checked" ';?>
value="MountainBiking" tabindex="280"> Mountain Biking</label>

<label><input type="checkbox" id="chkWakeboarding" name="chkWakeboarding"
<?php if($Wakeboarding) echo ' checked="checked" ';?>
value="Wakeboarding" tabindex="285"> Wakeboarding</label>

<label><input type="checkbox" id="chkRockClimbing" name="chkRockClimbing"
<?php if($RockClimbing) echo ' checked="checked" ';?>
value="RockClimbing" tabindex="290"> Rock Climbing</label>

<label><input type="checkbox" id="chkNone" name="chkNone"
<?php if($None) echo ' checked="checked" ';?>
value="None" tabindex="291"> None</label>

</fieldset>

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com