$('input:radio[name="overTime"]').each(function(){ $(this).removeAttr('checked'); });
幾個name相同的radio監聽事件,點擊其中一個實現相應的功能 ,也能夠用click事件。javascript
$('input:radio[name="overTime"]').change(function(){ var overTime = $(this).val(); });