我有一個radio buttons
的選擇,我希望它如果用戶clicks
上的「最高通話費用」,然後它「按成本選擇」單選按鈕。隱藏一個單選按鈕選項
代碼以供參考:
<div id="radioGroup">
<h3>Select by Amount: </h3>
\t <input type="radio" name="dialinfo" value="mostdialled"> <label for="mostdialled">Most Dialled Digits</label><br>
\t <input type="radio" name="dialinfo" value="highestcost"> <label for="highestcost">Highest Costing Calls</label>
<br>
<h3>Select by Location: </h3>
\t <input type="radio" name="callLocation"> <label for="callLocation">Inside the UK</label><br>
\t <input type="radio" name="callLocation"> <label for="callLocation">International</label>
<h3>Select by Cost: </h3>
\t <input type="radio" name="costradio"> <label for="costradio">Less than £1</label><br>
\t <input type="radio" name="costradio"> <label for="costradio">More than £1</label><br>
\t <input type="radio" name="costradio"> <label for="costradio">More than £5</label><br>
\t <input type="radio" name="costradio"> <label for="costradio">More than £10</label>
<h3>Select Duration: </h3>
\t <input type="radio" name="callDuration"> <label for="callDuration">Less than 60s</label><br>
\t <input type="radio" name="callDuration"> <label for="callDuration">More than 60s</label><br>
\t <input type="radio" name="callDuration"> <label for="callDuration">More than 1hr</label><br>
\t <input type="radio" name="callDuration"> <label for="callDuration">More than 5hrs</label>
</div>
謝謝
肖恩
嗨,是啊,這是完美的,由於某種原因,JSfiddle工作正常,但在我的頁面上沒有問題,我會解決這個問題,但非常感謝您的幫助! – Sean9113
嘗試將jquery代碼添加到$(document).ready(function(){..} – FalcoB