天天看點

擷取所有複選框select選中狀态的id

var array = new Array();
 
$('input:checkbox[name=item]:checked').each(function(){  
            
    array.push($(this).parents('td').siblings('.planId').attr('id'));//向數組中添加元素  
        
});