$("#checkall").click(function(){
if($(this).is(':checked')){
$("input[name='ids']").each(function(){
if($(this).attr("disabled")!="disabled"){
$(this).prop("checked",true);
}
})
}else{
$("input[name='ids']").prop("checked",false);
}
})
if($(this).is(':checked')){
$("input[name='ids']").each(function(){
if($(this).attr("disabled")!="disabled"){
$(this).prop("checked",true);
}
})
}else{
$("input[name='ids']").prop("checked",false);
}
})