1
<table class="table">
<tbody>
<tr>
<td></td>
<td>Destination</td>
<td>Service Charges</td>
<td>Time Frame</td>
</tr>
<tr class="uk">
<td><input checked="checked" type="radio" name="shiping-method" id="shipping-method" value="1"></td>
<td>uk</td>
<td>free</td>
<td>2-4 working days</td>
</tr>
<tr class="uk">
<td><input type="radio" name="shiping-method" id="shipping-method" value="3"></td>
<td>uk</td>
<td>6.00</td>
<td>next working day</td>
</tr>
</tbody>
</table>
這些值不主頁 我嘗試使用下面的代碼
$('input[type="radio"]').on('click',function(){
var value = $(this).val();
alert($(this).val());
});
使用事件代理如果動態添加的 – guradio
可能的複製[事件綁定上動態創建的元素?](http://stackoverflow.com/questions/203198/event-binding-on-動態創建元素) – guradio
即時通訊使用「開」但它不起作用 – samar