さて、私はここで何かに固執しています。
これは私が取り組んでいるページです:https ://www.passovermeal.org/
テキスト入力フィールドがそれぞれに接続された2つのラジオボタンがあります。
2番目のラジオボタンが選択されている場合、最初のテキストフィールドから値を削除したいと思います。
ここで、IDが#productsのdivのようなページ上の領域をクリックすると、2番目のラジオボタンの選択された状態を削除し、選択された状態を最初のラジオボタンに戻し、入力された金額を削除したいと思います。 2番目のテキスト領域に。
ラジオボタンのセットは次のとおりです。
<div id="hiddenOtherAmountArea">
<input type="radio" value="9705" id="level_other" name="level_id" style="display:inline; margin-top:5px;" checked="checked" />
<!-- TODO: update value -->
<input type="text" id="other_amount" size="10" name="other_amount" value="" class="checked" />
</div>
<div id="otherAmountArea">
<input type="radio" value="9721" id="level_other" name="level_id" style="display:inline; margin-top:5px;" />Or enter another amount
<!-- TODO: update value -->
<input type="text" id="other_amount" size="15" name="other_amount" value="" class="otherChecked" />
</div>