Make sure you are putting this code in aspx page. ClientID will not work in external js file.
For external js file, try following in jQuery:
$("[id*=CheckBoxList1] input:checkbox").prop('checked', true);
For more information to get/set checkboxlist items in jquery, check following:
ASP.NET CheckBoxList Operations with jQuery[
^]