2012-10-15 80 views

回答

4

使用not

$('input[type="checkbox"]').not('#selectAll') 

或者,選擇除首先複選框,您還可以使用gt

$('input[type="checkbox"]:gt(0)') 
0

一個做這件事的許多方式..

$(':checkbox', '#tableID').filter(function() { 
    return this.id != 'selectAll'; 
}).prop('selected', true);