【发布时间】:2015-10-19 17:55:58
【问题描述】:
我有一个radio buttons 选项,我想要它,如果用户clicks 选择“最高通话费用”,那么hides 选择“按费用选择”单选按钮。
参考代码:
<div id="radioGroup">
<h3>Select by Amount: </h3>
<input type="radio" name="dialinfo" value="mostdialled"> <label for="mostdialled">Most Dialled Digits</label><br>
<input type="radio" name="dialinfo" value="highestcost"> <label for="highestcost">Highest Costing Calls</label>
<br>
<h3>Select by Location: </h3>
<input type="radio" name="callLocation"> <label for="callLocation">Inside the UK</label><br>
<input type="radio" name="callLocation"> <label for="callLocation">International</label>
<h3>Select by Cost: </h3>
<input type="radio" name="costradio"> <label for="costradio">Less than £1</label><br>
<input type="radio" name="costradio"> <label for="costradio">More than £1</label><br>
<input type="radio" name="costradio"> <label for="costradio">More than £5</label><br>
<input type="radio" name="costradio"> <label for="costradio">More than £10</label>
<h3>Select Duration: </h3>
<input type="radio" name="callDuration"> <label for="callDuration">Less than 60s</label><br>
<input type="radio" name="callDuration"> <label for="callDuration">More than 60s</label><br>
<input type="radio" name="callDuration"> <label for="callDuration">More than 1hr</label><br>
<input type="radio" name="callDuration"> <label for="callDuration">More than 5hrs</label>
</div>
谢谢,
肖恩
【问题讨论】:
标签: javascript jquery radio-button