Tşk ederim bu şekilde çalıştı ama benim select all buton input değil,
inputa çalışıyor ama butona yaptığımda çalışmıyor.

bu şekilde çalışmıyor






$('#select-all').change(function(event) {
if(this.checked) {
$(':checkbox').each(function() {
this.checked = true;
});
} else {
$(':checkbox').each(function() {
this.checked = false;
});
}
});