How to check a category checkbox using JavaScript

This solved it:

jQuery(document).ready(function() {
  jQuery( '#in-category-43' ).prop('checked', true);
});

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)