移動AmountOther
文本框變成自己<div class="field">
<div class="field" id="radioButtons">
<label>Please select a donation amount or enter the amount you would like to donate below.</label>
<div class="option">
<input name="Amount" type="radio" id="amount25" value="25" class="radio" />
<label for="amount25">$25</label>
</div>
<div class="option">
<input name="Amount" type="radio" id="amount50" value="50" class="radio" />
<label for="amount50">$50 <span>most popular amount</span></label>
</div>
<div class="option">
<input name="Amount" type="radio" id="amount100" value="100" class="radio" />
<label for="amount100">$100</label>
</div>
<div class="option">
<input name="Amount" type="radio" id="amount250" value="250" class="radio" />
<label for="amount250">$250</label>
</div>
<div class="option">
<input name="Amount" type="radio" id="other" value="other" class="radio" />
<label for="other">other <span>(minimum $1 donation)</span></label>
</div>
<div id="donationErrorMsg"></div>
</div>
<div class="field">
<input type="text" class="textbox" name="AmountOther" id="AmountOther" value="" />.00
</div>
包含單選按鈕是沒有得到突出,因爲相同div
包含AmountOther
文本字段(不要求如果其他單選按鈕div
沒有被選中)。在同一個div
中有兩個字段(Amount
和AmountOther
),一個是必需的(Amount
),另一個不是(AmountOther
),因爲它沒有突出顯示。
謝謝摩西先生。就是這樣! – Loony2nz 2010-01-06 21:15:21