我有 2 个单选按钮。But when the one (check1) is selected, i'd like to change the span.amount html. 我该怎么做呢?
<input type="radio" class="radio-check" name="type" id="check1" value="0" checked />
<label for="check1">$99.99</label>
<input type="radio" class="radio-check" name="type" id="check2" value="1" />
<label for="check2">None</label>
$('#check1').change(function(){
$('amount').html('$99.99'));
});
<button class="btn" type="submit">Pay <span id="amount" class="amount">$249.99</span></button>
谢谢您的帮助!