【发布时间】:2010-02-23 16:41:50
【问题描述】:
好吧,我被困在这里了。
这是我正在处理的页面:https://www.passovermeal.org/
我有两个带有文本输入字段的单选按钮。
如果选择了第二个单选按钮,我想从第一个文本字段中删除值。
现在,如果我单击页面上的某个区域(例如 ID 为 #products 的 div),我想删除第二个单选按钮的选中状态,并将选中状态放回第一个单选按钮并删除金额输入到第二个文本区域。
这是一组单选按钮:
<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>
【问题讨论】:
标签: jquery forms input shopping-cart